mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-07 00:07:07 +00:00
[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:
Vendored
+4
-2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user