mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-03 22:37:03 +00:00
Moving __DEV__ to global namespace (#14916)
This commit is contained in:
committed by
Mohamed Hegazy
parent
44449d5481
commit
3c07598678
Vendored
+7
-7
@@ -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:
|
||||
* <code> if (__DEV__) console.log('Running in dev mode')</code>
|
||||
*/
|
||||
declare var __DEV__: boolean
|
||||
/**
|
||||
* This variable is set to true when react-native is running in Dev mode
|
||||
* Typical usage:
|
||||
* <code> if (__DEV__) console.log('Running in dev mode')</code>
|
||||
*/
|
||||
var __DEV__: boolean
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user