mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
types(@vant/use): fix useToggle typing #7843
This commit is contained in:
parent
b03341792e
commit
a94c479196
@ -6,5 +6,5 @@ export function useToggle(defaultValue = false) {
|
|||||||
state.value = value;
|
state.value = value;
|
||||||
};
|
};
|
||||||
|
|
||||||
return [state, toggle];
|
return [state, toggle] as const;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user