Skip to content

Interface: FetchWithMethods()

Defined in: packages/fetch/src/index.ts:40

Extends

FetchWithMethods<TJSON, TOptions, TReturn>(url, options): IPromisE<TReturn>

Defined in: packages/fetch/src/index.ts:40

Type Parameters

TJSON

TJSON

TOptions

TOptions extends FetchOptions = FetchOptions

TReturn

TReturn = TOptions["as"] extends FetchAs ? FetchResult<TJSON>[any[any]] : TJSON

Parameters

url

string | URL

options

TOptions = ...

Returns

IPromisE<TReturn>

Properties

defaults

defaults: Omit<FetchOptionsInterceptor, "retryIf" | "method">

Defined in: packages/fetch/src/fetch.ts:160

Inherited from

FetchWithoutMethods.defaults


delete

delete: PostMethodFunc

Defined in: packages/fetch/src/index.ts:44


get

get: FetchMethodFunc

Defined in: packages/fetch/src/index.ts:41


head: FetchMethodFunc

Defined in: packages/fetch/src/index.ts:42


options

options: FetchMethodFunc

Defined in: packages/fetch/src/index.ts:43


patch

patch: PostMethodFunc

Defined in: packages/fetch/src/index.ts:45


post

post: PostMethodFunc

Defined in: packages/fetch/src/index.ts:46


put

put: PostMethodFunc

Defined in: packages/fetch/src/index.ts:47