UNPKG

@vimeo/iris

Version:
17 lines (16 loc) 360 B
export interface State { width: number; selected: number | string; active: boolean; } type Action = { type: string; payload?: any; }; export declare const init: (defaultValue: any) => { width: number; selected: any; active: boolean; }; export declare function reducer(state: State, { type, payload }: Action): State; export {};