@coconut-software/ui
Version:
React components for faster and easier web development.
19 lines (18 loc) • 503 B
TypeScript
import type { ListItemStateType } from './Item';
export type NestedListActions = {
type: NestedListActionTypes.RegisterListId;
id: string;
} | {
type: NestedListActionTypes.ToggleOpen;
} | {
type: NestedListActionTypes.UnregisterListId;
} | {
type: NestedListActionTypes.UpdateItemState;
itemState: ListItemStateType;
};
export declare enum NestedListActionTypes {
RegisterListId = 0,
UnregisterListId = 1,
ToggleOpen = 2,
UpdateItemState = 3
}