UNPKG
neuro-store
Version:
latest (1.0.6)
1.0.6
1.0.5
1.0.4
1.0.3
1.0.2
1.0.1
1.0.0
neuro-store
github.com/riteshmyhub/neuro-store
riteshmyhub/neuro-store
neuro-store
/
dist
/
utils
/
asyncThunk.utils.d.ts
9 lines
(8 loc)
•
257 B
TypeScript
View Raw
1
2
3
4
5
6
7
8
9
declare
function
asyncThunk<T>(
type
:
string
,
asyncFn
:
(
arg
: T,
thunkAPI
: { dispatch:
any
; }
) =>
Promise
<
any
>): (
(
arg
: T
) =>
(
dispatch
:
any
) =>
Promise
<
any
>) & {
pending
:
string
;
fulfilled
:
string
;
rejected
:
string
; };
export
{ asyncThunk };