UNPKG
@stately/hooks
Version:
latest (0.0.3)
0.0.3
0.0.2
0.0.1
state management use hooks functions
github.com/hosseinmd/stately
hosseinmd/stately
@stately/hooks
/
typescript
/
index.d.ts
10 lines
(5 loc)
•
241 B
TypeScript
View Raw
1
2
3
4
5
6
7
8
9
10
import
{ store }
from
"@stately/core"
;
// Type definitions for @stately/hooks
declare
module
'@stately/hooks'
{
export
function
createHooks<S, A>(
store
: store<S, A>):
(
sensitiveStateKeys
:
Array
<
string
>,
listener
:
Function
) =>
[S, A] }