UNPKG

219 BTypeScriptView Raw
1export interface Actions {
2 setTrue: () => void;
3 setFalse: () => void;
4 set: (value: boolean) => void;
5 toggle: () => void;
6}
7export default function useBoolean(defaultValue?: boolean): [boolean, Actions];