mirror of
https://github.com/wallace5303/ee-core.git
synced 2026-04-05 07:29:04 +08:00
15 lines
579 B
TypeScript
15 lines
579 B
TypeScript
export declare class EventBus {
|
|
lifecycleEvents: {};
|
|
eventsMap: {};
|
|
register(eventName: string, handler: Function): void;
|
|
emitLifecycle(eventName: string, ...args: any[]): void;
|
|
on(eventName: string, handler: Function): void;
|
|
emit(eventName: string, ...args: any[]): void;
|
|
}
|
|
export declare const eventBus: EventBus;
|
|
export declare const Ready: "ready";
|
|
export declare const ElectronAppReady: "electron-app-ready";
|
|
export declare const WindowReady: "window-ready";
|
|
export declare const Preload: "preload";
|
|
export declare const BeforeClose: "before-close";
|