1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- export = fetch;
-
-
- type FetchCallback = (error: Error, contents?: string) => void;
-
-
-
- interface FetchOptions {
- binary?: boolean;
- xhr?: boolean
- }
-
-
- declare function fetch(filename: string, options: FetchOptions, callback: FetchCallback): void;
-
-
- declare function fetch(path: string, callback: FetchCallback): void;
-
-
- declare function fetch(path: string, options?: FetchOptions): Promise<(string|Uint8Array)>;
|