mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
added fetch function in react-native (#12408)
This commit is contained in:
parent
95a8139d37
commit
07765863bf
1
react-native/index.d.ts
vendored
1
react-native/index.d.ts
vendored
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user