diff --git a/types/react-native/test/globals.tsx b/types/react-native/test/globals.tsx new file mode 100644 index 0000000000..a6488cef82 --- /dev/null +++ b/types/react-native/test/globals.tsx @@ -0,0 +1,3 @@ +const fetchCopy: GlobalFetch['fetch'] = fetch; + +const requestInfoAsString: RequestInfo = 'request'; diff --git a/types/react-native/tsconfig.json b/types/react-native/tsconfig.json index 16c6bf9275..c577fb0d8b 100644 --- a/types/react-native/tsconfig.json +++ b/types/react-native/tsconfig.json @@ -20,9 +20,10 @@ "files": [ "index.d.ts", "test/index.tsx", + "test/globals.tsx", "test/animated.tsx", "test/init-example.tsx", "test/ART.tsx", "test/legacy-properties.tsx" ] -} \ No newline at end of file +}