diff --git a/types/react-native/index.d.ts b/types/react-native/index.d.ts index a96ffd41eb..413053ee10 100644 --- a/types/react-native/index.d.ts +++ b/types/react-native/index.d.ts @@ -9297,9 +9297,11 @@ export const PointPropType: React.Validator; export const ViewPropTypes: React.ValidationMap; declare global { - type ReactNativeRequireFunction = (name: string) => any; + interface NodeRequire { + (id: string): any; + } - var require: ReactNativeRequireFunction; + var require: NodeRequire; /** * Console polyfill