site/node_modules/fetch-ponyfill/index.d.ts
2024-10-14 08:09:33 +02:00

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