MCPcopy
hub / github.com/unjs/ofetch / $Fetch

Interface $Fetch

src/types.ts:5–16  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3// --------------------------
4
5export interface $Fetch {
6 <T = any, R extends ResponseType = "json">(
7 request: FetchRequest,
8 options?: FetchOptions<R>
9 ): Promise<MappedResponseType<R, T>>;
10 raw<T = any, R extends ResponseType = "json">(
11 request: FetchRequest,
12 options?: FetchOptions<R>
13 ): Promise<FetchResponse<MappedResponseType<R, T>>>;
14 native: Fetch;
15 create(defaults: FetchOptions, globalOptions?: CreateFetchOptions): $Fetch;
16}
17
18// --------------------------
19// Options

Callers 2

index.test.tsFile · 0.80
proxy.mjsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…