From 8b7bccf8a1145f2628e6fb4f0d8db1f0478868e4 Mon Sep 17 00:00:00 2001 From: Vincent Langlet Date: Tue, 15 May 2018 00:00:05 +0200 Subject: [PATCH] Add tests --- types/react-native/test/globals.tsx | 3 +++ types/react-native/tsconfig.json | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 types/react-native/test/globals.tsx 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 +}