Merge pull request #33800 from danilobuerger/patch-6

[react-native] allow redeclaring require when node typing is present
This commit is contained in:
Eloy Durán
2019-03-12 12:18:31 +01:00
committed by GitHub
+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