@vimeo/iris
Version:
Vimeo Design System
17 lines (16 loc) • 360 B
TypeScript
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 {};