Preparing search index...
The search index is not available
Palico App
Palico App
@palico-ai/client-js
createAPIClient
Function createAPIClient
createAPIClient
(
options
)
:
{
fetch
:
(
<
RequestBody
>
(
path
,
fetchOptions
)
=>
Promise
<
Response
>
)
;
fetchJSON
:
(
<
Response
,
RequestBody
>
(
path
,
fetchOptions
)
=>
Promise
<
Response
>
)
;
}
Parameters
options
:
APIRequestOptions
Returns
{
fetch
:
(
<
RequestBody
>
(
path
,
fetchOptions
)
=>
Promise
<
Response
>
)
;
fetchJSON
:
(
<
Response
,
RequestBody
>
(
path
,
fetchOptions
)
=>
Promise
<
Response
>
)
;
}
fetch
:
(
<
RequestBody
>
(
path
,
fetchOptions
)
=>
Promise
<
Response
>
)
<
RequestBody
>
(
path
,
fetchOptions
)
:
Promise
<
Response
>
Type Parameters
RequestBody
=
any
Parameters
path
:
string
fetchOptions
:
APIFetchOptions
<
RequestBody
>
Returns
Promise
<
Response
>
fetchJSON
:
(
<
Response
,
RequestBody
>
(
path
,
fetchOptions
)
=>
Promise
<
Response
>
)
<
Response
,
RequestBody
>
(
path
,
fetchOptions
)
:
Promise
<
Response
>
Type Parameters
Response
=
any
RequestBody
=
any
Parameters
path
:
string
fetchOptions
:
APIFetchOptions
<
RequestBody
>
Returns
Promise
<
Response
>
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
Palico App
Loading...