UNPKG
@captaincodeman/rdx
Version:
latest (1.0.0-rc.9)
1.0.0-rc.9
1.0.0-rc.8
1.0.0-rc.7
1.0.0-rc.6
1.0.0-rc.5
1.0.0-rc.4
1.0.0-rc.3
1.0.0-rc.2
1.0.0-rc.1
1.0.0-beta.3
1.0.0-beta.2
1.0.0-beta.1
1.0.0-alpha.3
1.0.0-alpha.2
1.0.0-alpha.1
Small state library. Like Redux, but smaller
captaincodeman.github.io/rdx/
CaptainCodeman/rdx
@captaincodeman/rdx
/
typings
/
thunk.d.ts
5 lines
(3 loc)
•
194 B
TypeScript
View Raw
1
2
3
4
5
import
{
Dispatch
,
GetState
,
Store
}
from
'./store'
export
type
ThunkAction
= <S>
(
dispatch
:
Dispatch
,
getState
:
GetState
<S>
) =>
void
export
declare
function
thunk<T
extends
Store
>(
store
: T): T