19 lines
445 B
TypeScript
19 lines
445 B
TypeScript
|
export = fetchPonyfill;
|
||
|
|
||
|
declare function fetchPonyfill(options?: fetchPonyfill.BootstrapOptions): fetchPonyfill.BootstrapRetVal;
|
||
|
|
||
|
declare namespace fetchPonyfill {
|
||
|
interface BootstrapOptions {
|
||
|
Promise?: Function;
|
||
|
XMLHttpRequest?: Function;
|
||
|
}
|
||
|
|
||
|
interface BootstrapRetVal {
|
||
|
fetch: typeof fetch;
|
||
|
Headers: typeof Headers;
|
||
|
Request: typeof Request;
|
||
|
Response: typeof Response;
|
||
|
DOMException: typeof DOMException;
|
||
|
}
|
||
|
}
|