mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-06-06 06:19:58 +08:00
Merge pull request #19840 from huhuanming/react-native
Add Fetch and Remove dom in tsconfig
This commit is contained in:
2
types/react-native/globals.d.ts
vendored
2
types/react-native/globals.d.ts
vendored
@@ -18,3 +18,5 @@ declare function setImmediate(handler: (...args: any[]) => void): number;
|
||||
|
||||
declare function cancelAnimationFrame(handle: number): void;
|
||||
declare function requestAnimationFrame(callback: (time: number) => void): number;
|
||||
|
||||
declare function fetch(input: RequestInfo, init?: RequestInit): Promise<Response>;
|
||||
|
||||
5
types/react-native/index.d.ts
vendored
5
types/react-native/index.d.ts
vendored
@@ -8496,11 +8496,6 @@ export interface ImageStoreStatic {
|
||||
): void
|
||||
}
|
||||
|
||||
// Network Polyfill
|
||||
// TODO: Add proper support for fetch
|
||||
export type fetch = (url: string, options?: Object) => Promise<any>
|
||||
export const fetch: fetch;
|
||||
|
||||
export interface TabsReducerStatic {
|
||||
JumpToAction(index: number): any;
|
||||
}
|
||||
|
||||
@@ -2,8 +2,7 @@
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"lib": [
|
||||
"es6",
|
||||
"dom"
|
||||
"es6"
|
||||
],
|
||||
"noImplicitAny": true,
|
||||
"noImplicitThis": true,
|
||||
|
||||
Reference in New Issue
Block a user