From 5cac2edc372277d3898b2f506e4c75cd5852769e Mon Sep 17 00:00:00 2001 From: Pascal Hartig Date: Wed, 28 Aug 2019 03:00:15 -0700 Subject: [PATCH] Make processConfig pass strict mode Summary: _typescript_ Reviewed By: danielbuechele Differential Revision: D17072572 fbshipit-source-id: fed0d93e7a4cfe04f339370dbace7181bec73ca1 --- src/utils/processConfig.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/utils/processConfig.tsx b/src/utils/processConfig.tsx index 686cffc32..68f211b09 100644 --- a/src/utils/processConfig.tsx +++ b/src/utils/processConfig.tsx @@ -23,11 +23,10 @@ export type ProcessConfig = { launcherEnabled: boolean; }; -let configObj = null; +let configObj: ProcessConfig | null = null; export default function config(): ProcessConfig { if (configObj === null) { const json = JSON.parse( - // $FlowFixMe: process.env not in type defs (remote && remote.process.env.CONFIG) || process.env.CONFIG || '{}', ); configObj = {