mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-22 11:57:33 +08:00
Moving __DEV__ to global namespace (#14916)
This commit is contained in:
committed by
Mohamed Hegazy
parent
44449d5481
commit
3c07598678
14
react-native/index.d.ts
vendored
14
react-native/index.d.ts
vendored
@@ -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