You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
414 B
13 lines
414 B
import once = require('./once'); |
|
import types = require('./types'); |
|
|
|
declare class Emitter { |
|
on(event: string, listener: types.AnyFn): Emitter; |
|
off(event: string, listener: types.AnyFn): Emitter; |
|
once(event: string, listener: types.AnyFn): Emitter; |
|
emit(event: string, ...args: any[]): Emitter; |
|
removeAllListeners(event?: string): Emitter; |
|
static mixin(obj: any): any; |
|
} |
|
|
|
export = Emitter;
|
|
|