webcad-ue4-api/types/Common/Toaster.d.ts
2024-10-29 17:14:43 +08:00

31 lines
870 B
TypeScript

export declare enum Intent {
NONE = "none",
PRIMARY = "primary",
SUCCESS = "success",
WARNING = "warning",
DANGER = "danger"
}
export interface IToasterOption {
message: string | string[];
timeout: number;
intent: Intent;
key?: string;
}
type ToasterFunction = (option: IToasterOption) => void;
export declare const ToasterInjectFunctions: ToasterFunction[];
export declare function Toaster(option: IToasterOption): void;
interface IToasterShowEntityErrorOption {
intent: Intent;
msg: string;
timeout: number;
ent: any;
}
export declare const ToasterShowEntityMsgInjectFunctions: ((option: IToasterShowEntityErrorOption) => void)[];
export declare function ToasterShowEntityMsg(option: {
intent: Intent;
msg: string;
timeout: number;
ent: any;
}): void;
export {};
//# sourceMappingURL=Toaster.d.ts.map