Type alias: Fetcher<R, T>
Ƭ Fetcher<R
, T
>: (url
: string
, method
: FetchMethod
, body?
: T
, options?
: FetchOptions
<R
, T
>) => Promise
<R
>
Type parameters
Name | Type |
---|---|
R | any |
T | any |
Type declaration
▸ (url
, method
, body?
, options?
): Promise
<R
>
Parameters
Name | Type |
---|---|
url | string |
method | FetchMethod |
body? | T |
options? | FetchOptions <R , T > |
Returns
Promise
<R
>
Defined in
onekijs/packages/onekijs-framework/src/types/fetch.ts:25