UNPKG

@appello/common

Version:

Common package with many useful features for web and mobile development

11 lines (10 loc) 293 B
import { Dispatch, SetStateAction } from 'react'; interface UseSwitchValueReturn { value: boolean; on(): void; off(): void; toggle(): void; set: Dispatch<SetStateAction<boolean>>; } export declare function useSwitchValue(initial: boolean): UseSwitchValueReturn; export {};