UNPKG
ht_hooks
Version:
latest (0.1.1)
0.1.1
0.1.0
ht React 业务 Hooks
github.com/MengToong/ht_hooks
MengToong/ht_hooks
ht_hooks
/
es
/
useRequest
/
src
/
utils
/
cacheSubscribe.d.ts
5 lines
(4 loc)
•
199 B
TypeScript
View Raw
1
2
3
4
5
type
Listener
=
(
data
:
any
) =>
void
;
declare
const
trigger
:
(
key
:
string
,
data
:
any
) =>
void
;
declare
const
subscribe
:
(
key
:
string
,
listener
:
Listener
) =>
() =>
void
;
export
{ trigger, subscribe };