Interface IEvents<IEventsList>
Indexable
[key: string]: any
Properties
destroy
destroy: function
emitter
emitter: EventEmitter
Methods
emit
- emit<IE>(eventName: IE, data: IEventsList[IE]): this
-
Type parameters
Parameters
-
eventName: IE
-
data: IEventsList[IE]
Returns this
off
- off<IE>(eventName: IE, listener: function): this
-
Type parameters
Parameters
-
eventName: IE
-
listener: function
-
- (data: IEventsList[IE]): void
Returns this
on
- on<IE>(eventName: IE, listener: function): this
-
Type parameters
Parameters
-
eventName: IE
-
listener: function
-
- (data: IEventsList[IE]): void
Returns this
once
- once<IE>(eventName: IE, listener: function): this
-
Type parameters
Parameters
-
eventName: IE
-
listener: function
-
- (data: IEventsList[IE]): void
Returns this
Delte all linstening events.