site/node_modules/fetch-ponyfill/index.d.ts

19 lines
445 B
TypeScript
Raw Normal View History

2024-10-14 06:09:33 +00:00
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;
}
}