Callable
- __call(instance?: undefined | string): EventBus
-
Parameters
-
Optional instance: undefined | string
Methods
On
- On(...events: string[]): TypedPropertyDecorator<AnyFunction>
-
Parameters
Returns TypedPropertyDecorator<AnyFunction>
emit
- emit(event: string, ...args: any[]): EventBus
-
Parameters
-
event: string
-
Rest ...args: any[]
off
- off(events: string[] | string, handler: AnyFunction): EventBus
-
Parameters
-
events: string[] | string
-
handler: AnyFunction
on
- on(events: string[] | string, handler: AnyFunction): EventBus
-
Parameters
-
events: string[] | string
-
handler: AnyFunction
once
- once(events: string[] | string, handler: AnyFunction): EventBus
-
Parameters
-
events: string[] | string
-
handler: AnyFunction