added fetch function in react-native (#12408)

This commit is contained in:
hktonylee 2016-11-02 21:18:52 +08:00 committed by Masahiro Wakame
parent 95a8139d37
commit 07765863bf

View File

@ -7569,6 +7569,7 @@ declare module "react" {
// Network Polyfill
// TODO: Add proper support for fetch
export type fetch = (url: string, options?: Object) => Promise<any>
export const fetch: fetch;
// Timers polyfill
export type timedScheduler = (fn: string | Function, time: number) => number