Add files to strict mode (#775)

This commit is contained in:
Sunil Kumar Yadav
2021-05-22 05:15:54 +05:30
committed by GitHub
parent 3b6b987149
commit afd7f43eb8
3 changed files with 7 additions and 5 deletions

View File

@@ -4,8 +4,8 @@ import { ConfigContext, initializeConfiguration } from "../ConfigContext";
// This hook initializes global configuration from a config.json file that is injected at deploy time
// This allows the same main Data Explorer build to be exactly the same in all clouds/platforms,
// but override some of the configuration as nesssary
export function useConfig(): Readonly<ConfigContext> {
const [state, setState] = useState<ConfigContext>();
export function useConfig(): Readonly<ConfigContext | undefined> {
const [state, setState] = useState<ConfigContext | undefined>();
useEffect(() => {
initializeConfiguration().then((response) => setState(response));