UNPKG
ahooks-v2
Version:
latest (2.10.15)
2.10.15
2.10.13
react hooks library
github.com/alibaba/hooks
alibaba/hooks
ahooks-v2
/
lib
/
useSet
/
index.d.ts
8 lines
(7 loc)
•
213 B
TypeScript
View Raw
1
2
3
4
5
6
7
8
declare
function
useSet<K>(
initialValue
?:
Iterable
<K>):
readonly
[
Set
<K>, {
add
:
(
key
: K
) =>
void
;
remove
:
(
key
: K
) =>
void
;
reset
:
() =>
void
;
has
:
(
key
: K
) =>
boolean
; }];
export
default
useSet;