12 lines
287 B
TypeScript
12 lines
287 B
TypeScript
|
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);
|
||
|
}
|