ofetch
Version:
A better fetch API. Works on node, browser and workers.
14 lines (11 loc) • 636 B
TypeScript
import { $ as $Fetch } from './error-04138797.js';
export { C as CreateFetchOptions, b as FetchContext, e as FetchError, c as FetchOptions, F as FetchRequest, a as FetchResponse, S as SearchParameters, d as createFetch, f as createFetchError } from './error-04138797.js';
declare function createNodeFetch(): (input: RequestInfo, init?: RequestInit) => any;
declare const fetch: typeof globalThis.fetch;
declare const Headers: {
new (init?: HeadersInit | undefined): Headers;
prototype: Headers;
};
declare const ofetch: $Fetch;
declare const $fetch: $Fetch;
export { $Fetch, $fetch, Headers, createNodeFetch, fetch, ofetch };