Skip to content

Commit 1312088

Browse files
committed
version: 2.2.4
1 parent 2d7cddd commit 1312088

File tree

2 files changed

+5549
-4384
lines changed

2 files changed

+5549
-4384
lines changed

packages/hooks/src/useSet/index.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ function useSet<T = any>(initialValue?: T[]) {
2222
* @param value T
2323
*/
2424
add: (value: T) => {
25+
// @ts-ignore
2526
state.value.add(value)
2627
},
2728

@@ -30,13 +31,15 @@ function useSet<T = any>(initialValue?: T[]) {
3031
* @param value T
3132
*/
3233
remove: (value: T) => {
34+
// @ts-ignore
3335
state.value.delete(value)
3436
},
3537

3638
/**
3739
* Set has
3840
* @param value T
3941
*/
42+
// @ts-ignore
4043
has: (value: T) => state.value.has(value),
4144

4245
/**

0 commit comments

Comments
 (0)