Classes · @purista/core

GenericEventEmitter

Signature

GenericEventEmitter.tstypescript
class GenericEventEmitter<T>

Constructors

1 entry

constructor

Constructor

constructor.tstypescript
new constructor<T>()

Methods

4 entries

emit

Method

Source
emit.tstypescript
emit<K>(eventName: K, parameter?: T[K]): void

off

Method

Source
off.tstypescript
off<K>(eventName: K, fn: EventReceiver<T[K]>): void

on

Method

Source
on.tstypescript
on<K>(eventName: K, fn: EventReceiver<T[K]>): void

removeAllListeners

Method

Source
removeAllListeners.tstypescript
removeAllListeners(): void