UNPKG
@asosunoff/react_use_fetch
Version:
latest (1.0.0)
1.0.0
0.8.1
0.8.0
0.7.1
0.7.0
0.6.9
0.6.8
0.6.7
0.6.6
0.6.5
0.6.4
0.5.4
0.4.4
0.3.4
0.3.3
0.3.2
0.2.2
0.2.1
0.1.1
0.1.0
0.0.1
React UseFetch
asosunoff.github.io/React-Use-Fetch/
aSosunoff/React-Use-Fetch
@asosunoff/react_use_fetch
/
dist
/
use-callback-async
/
index.d.ts
2 lines
(1 loc)
•
236 B
TypeScript
View Raw
1
2
export
declare
const
useCallbackAsync
: <
TData
,
TError
=
any
,
TParams
extends
any
[] =
any
[]>
(
callback
: (...params: TParams) =>
Promise
<
TData
>
) =>
[
import
(
"../hooks/use-fetch-reducer"
).
State
<
TData
,
TError
>,
(
...
params
:
TParams
) =>
void
];