[react-native] allow redeclaring require when node typing is present

Fixes
```
Subsequent variable declarations must have the same type.  Variable 
'require' must be of type 'NodeRequire', but here has type 
'ReactNativeRequireFunction'.
```
Caused by https://github.com/DefinitelyTyped/DefinitelyTyped/pull/33302
This commit is contained in:
Danilo Bürger
2019-03-12 10:57:29 +01:00
parent e95a4f0f1f
commit 75b774829e
+4 -2
View File
@@ -9297,9 +9297,11 @@ export const PointPropType: React.Validator<PointPropType>;
export const ViewPropTypes: React.ValidationMap<ViewProps>;
declare global {
type ReactNativeRequireFunction = (name: string) => any;
interface NodeRequire {
(id: string): any;
}
var require: ReactNativeRequireFunction;
var require: NodeRequire;
/**
* Console polyfill