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
/
lib
/
useSet
/
index.d.ts
7 lines
(6 loc)
•
206 B
TypeScript
View Raw
1
2
3
4
5
6
7
declare
function
useSet<K>(
initialValue
?:
Iterable
<K>):
readonly
[
any
, {
readonly
add
:
(
key
: K
) =>
void
;
readonly
remove
:
(
key
: K
) =>
void
;
readonly
reset
:
() =>
any
; }];
export
default
useSet;