Interface EventManager<T>
Methods
off
- off<K>(name, handler): void
Type Parameters
- K extends string | number | symbol
Returns void
on
- on<K>(name, handler, opts?): void
Type Parameters
- K extends string | number | symbol
Returns void
trigger
- trigger<K>(name, payload?): void
Type Parameters
- K extends string | number | symbol
Parameters
- name: K
Optional
payload: T[K]
Returns void