8 lines
304 B
TypeScript
8 lines
304 B
TypeScript
|
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
|