UNPKG
@xsprtd/nuxt-api
Version:
latest (2.0.1)
2.0.1
2.0.0
1.4.0
1.3.0
1.2.1
1.2.0
1.1.6
1.1.5
1.1.4
1.1.3
1.1.2
1.1.1
1.1.0
1.0.0
Nuxt API Authentication and Http Client
github.com/xsprtd/nuxt-api
xsprtd/nuxt-api
@xsprtd/nuxt-api
/
dist
/
runtime
/
composables
/
useApiFetch.d.ts
3 lines
(2 loc)
•
261 B
TypeScript
View Raw
1
2
3
import
type
{
FetchRequest
,
FetchOptions
,
MappedResponseType
,
ResponseType
}
from
'ofetch'
;
export
declare
const
useApiFetch
: <T =
unknown
, R
extends
ResponseType
=
"json"
>
(
request
:
FetchRequest
,
options
?:
FetchOptions
<R>
) =>
Promise
<
MappedResponseType
<R, T>>;