管理 boolean 状态的 Hook。
import { useBoolean } from 'v3-use'
const [state, { toggle, setFalse, setTrue }] = useBoolean()
const [state, actions] = useBoolean(defaultValue?: boolean)
export interface Actions {
toggle: () => void
setTrue: () => void
setFalse: () => void
}
export declare function useBoolean(
defaultValue?: boolean
): [Ref<boolean>, Actions]