From 3c07598678e48c8985341bab45d58fbe52c8aa98 Mon Sep 17 00:00:00 2001 From: Anurag Rao Date: Fri, 10 Mar 2017 12:29:11 +0530 Subject: [PATCH] Moving __DEV__ to global namespace (#14916) --- react-native/index.d.ts | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/react-native/index.d.ts b/react-native/index.d.ts index 0330d39a90..950451e574 100644 --- a/react-native/index.d.ts +++ b/react-native/index.d.ts @@ -8323,11 +8323,11 @@ declare module "react" { declare global { const global: React.GlobalStatic; function require(name: string): any; -} -/** - * This variable is set to true when react-native is running in Dev mode - * Typical usage: - * if (__DEV__) console.log('Running in dev mode') - */ -declare var __DEV__: boolean + /** + * This variable is set to true when react-native is running in Dev mode + * Typical usage: + * if (__DEV__) console.log('Running in dev mode') + */ + var __DEV__: boolean +}