This commit is contained in:
ChenX
2024-10-29 17:14:43 +08:00
parent 3cdbeeb178
commit dccd6ec73e
2683 changed files with 37067 additions and 201 deletions

31
types/Common/Toaster.d.ts vendored Normal file
View File

@@ -0,0 +1,31 @@
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