UNPKG

@fluentui/state

Version:

A set of utils to create framework agnostic and reusable state managers

10 lines (9 loc) 406 B
import { Manager, ManagerConfig } from '../types'; export declare type CheckboxActions = { toggle: (checked: boolean) => void; }; export declare type CheckboxState = { checked: boolean; }; export declare type CheckboxManager = Manager<CheckboxState, CheckboxActions>; export declare const createCheckboxManager: (config?: Partial<ManagerConfig<CheckboxState, CheckboxActions>>) => CheckboxManager;