Skip to main content

Type alias: Fetcher<R, T>

Ƭ Fetcher<R, T>: (url: string, method: FetchMethod, body?: T, options?: FetchOptions<R, T>) => Promise<R>

Type parameters

NameType
Rany
Tany

Type declaration

▸ (url, method, body?, options?): Promise<R>

Parameters
NameType
urlstring
methodFetchMethod
body?T
options?FetchOptions<R, T>
Returns

Promise<R>

Defined in

onekijs/packages/onekijs-framework/src/types/fetch.ts:25