Mayson Monorepo Documentation
Preparing search index...
packages/api-client/src
Fetcher
Type Alias Fetcher
Fetcher
:
<
T
>
(
endpoint
:
string
,
method
:
HttpMethod
,
body
?:
object
)
=>
Promise
<
T
>
Generic fetcher function type
Type Declaration
<
T
>
(
endpoint
:
string
,
method
:
HttpMethod
,
body
?:
object
)
:
Promise
<
T
>
Type Parameters
T
Parameters
endpoint
:
string
method
:
HttpMethod
Optional
body
:
object
Returns
Promise
<
T
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
Mayson Monorepo Documentation
Loading...
Generic fetcher function type