UNPKG

@rbxts/hook-bag

Version:

Collection of custom roact hooks

16 lines (14 loc) 342 B
import { HookCreator } from "./"; /** * State hook that tracks value of a boolean. * @param initialValue The initial value. */ declare function useToggle( initialValue: boolean, ): HookCreator< LuaTuple<[ value: boolean, toggle: (value?: boolean) => void, ]> >; export = useToggle;