assassin-bug/framework/event-bus/event-bus.d.ts

12 lines
287 B
TypeScript
Raw Normal View History

2022-11-26 01:22:02 +00:00
export declare class EventBus {
private events;
constructor();
emit(id: string, data: any): void;
subscribe(id: string, subscriber: Function): void;
}
export declare class EventItem {
id: string;
subscribers: Function[];
constructor(id: string);
}