wx-gantt-store
Version:
15 lines (14 loc) • 504 B
TypeScript
import type { TID } from "@wx/lib-state";
import type { ITask, IGanttTask } from "../types";
export interface IOptionConfig {
id?: TID;
separator?: boolean;
text?: string;
icon?: string;
data?: IOptionConfig[];
type?: string;
check?: (task: ITask, _tasks?: IGanttTask[]) => boolean | TID;
dataFactory?: (obj: any) => IOptionConfig;
}
export declare function assignChecks<T extends IOptionConfig>(items: T[]): T[];
export declare const defaultMenuOptions: IOptionConfig[];