Interface ReadonlyEventEmitterWrapper<CTX>
Hierarchy
- ReadonlyEventEmitterWrapper
Methods
off
Parameters
Returns void
Parameters
Returns void
on
- on<E, R>(events: CanArray<string>, handler: ProxyCb<E, R, CTX>, ...args: unknown[]): object
- on<E, R>(events: CanArray<string>, handler: ProxyCb<E, R, CTX>, params: AsyncOptions, ...args: unknown[]): object
Type parameters
Parameters
handler: ProxyCb<E, R, CTX>
Rest ...args: unknown[]
Returns object
Type parameters
Parameters
handler: ProxyCb<E, R, CTX>
Rest ...args: unknown[]
Returns object
once
- once<E, R>(events: CanArray<string>, handler: ProxyCb<E, R, CTX>, ...args: unknown[]): object
- once<E, R>(events: CanArray<string>, handler: ProxyCb<E, R, CTX>, params: AsyncOptions, ...args: unknown[]): object
Type parameters
Parameters
handler: ProxyCb<E, R, CTX>
Rest ...args: unknown[]
Returns object
Type parameters
Parameters
handler: ProxyCb<E, R, CTX>
Rest ...args: unknown[]
Returns object
promisifyOnce
Type parameters
Parameters
Returns Promise<CanUndef<T>>
Type parameters
Parameters
Returns Promise<CanUndef<T>>