Merge pull request #19840 from huhuanming/react-native

Add Fetch and Remove dom in tsconfig
This commit is contained in:
Eloy Durán
2017-10-09 20:46:10 +02:00
committed by GitHub
3 changed files with 3 additions and 7 deletions

View File

@@ -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>;

View File

@@ -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;
}

View File

@@ -2,8 +2,7 @@
"compilerOptions": {
"module": "commonjs",
"lib": [
"es6",
"dom"
"es6"
],
"noImplicitAny": true,
"noImplicitThis": true,