1
0
mirror of https://gitee.com/vant-contrib/vant.git synced 2025-04-06 03:57:59 +08:00

types(@vant/use): fix useToggle typing

This commit is contained in:
chenjiahan 2021-01-01 11:36:46 +08:00
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;
} }