From 07765863bfc72cfdb767bcc60997f8738fb00a8e Mon Sep 17 00:00:00 2001 From: hktonylee Date: Wed, 2 Nov 2016 21:18:52 +0800 Subject: [PATCH] added fetch function in react-native (#12408) --- react-native/index.d.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/react-native/index.d.ts b/react-native/index.d.ts index 9bd87c5013..8900ce0a0b 100644 --- a/react-native/index.d.ts +++ b/react-native/index.d.ts @@ -7569,6 +7569,7 @@ declare module "react" { // Network Polyfill // TODO: Add proper support for fetch export type fetch = (url: string, options?: Object) => Promise + export const fetch: fetch; // Timers polyfill export type timedScheduler = (fn: string | Function, time: number) => number