8 lines
219 B
Plaintext
8 lines
219 B
Plaintext
export interface Actions {
|
|
setTrue: () => void;
|
|
setFalse: () => void;
|
|
set: (value: boolean) => void;
|
|
toggle: () => void;
|
|
}
|
|
export default function useBoolean(defaultValue?: boolean): [boolean, Actions];
|