@httpc/client
Version:
httpc client for building function-based API with minimal code and end-to-end type safety
18 lines • 624 B
JavaScript
let fetch = undefined;
let Headers = undefined;
let Request = undefined;
let Response = undefined;
(function (global) {
({
fetch,
Headers,
Request,
Response,
} = global || {});
//@ts-ignore
}(typeof globalThis !== 'undefined' ? globalThis : typeof self !== 'undefined' ? self : typeof global !== 'undefined' ? global : this));
if (!fetch) {
throw new Error("Missing fetch API. Be sure fetch is available from the global object or polyfill it (es: with 'cross-fetch' module)");
}
export { fetch, Headers, Request, Response, };
//# sourceMappingURL=fetch.js.map