8 lines
304 B
TypeScript
Raw Normal View History

2020-10-17 18:42:50 +02:00
declare class EventEmitter {
on (event: string, callback: Function, ctx?: any): EventEmitter;
once (event: string, callback: Function, ctx?: any): EventEmitter;
emit (event: string, ...args: any[]): EventEmitter;
off (event: string, callback?: Function): EventEmitter;
}
export = EventEmitter