Class TakaroEmitterAbstract
Constructors
Methods
emit
- emit<E extends keyof IEventMap>(
event: E,
data: Error | BaseEvent<unknown>,
): Promise<void> Type Parameters
- E extends keyof IEventMap
Returns Promise<void>
hasErrorListener
- hasErrorListener(): boolean
Returns boolean
off
- off<E extends keyof IEventMap>(event: E, listener: IEventMap[E]): this
Type Parameters
- E extends keyof IEventMap
Parameters
- event: E
- listener: IEventMap[E]
Returns this
on
- on<E extends keyof IEventMap>(event: E, listener: IEventMap[E]): this
Type Parameters
- E extends keyof IEventMap
Parameters
- event: E
- listener: IEventMap[E]
Returns this
Abstract
start
- start(): Promise<void>
Returns Promise<void>
Abstract
stop
- stop(): Promise<void>
Returns Promise<void>