Interface JustEventEmpty<Type>
- JustEventEmpty(): readonly []
-
Returns readonly []
Properties
type
type: Type
Methods
emitBy
- emitBy(emitter: EventEmitterLike | EventTargetLike): void
-
Parameters
-
emitter: EventEmitterLike | EventTargetLike
Returns void
listenTo
- listenTo(emitter: EventEmitterLike | EventTargetLike, listener: (() => unknown)): void
-
Parameters
-
emitter: EventEmitterLike | EventTargetLike
-
listener: (() => unknown)
-
- (): unknown
-
Returns unknown
Returns void
listener
- listener(listener: (() => unknown)): ((...args: any[]) => any)
-
Parameters
-
listener: (() => unknown)
-
- (): unknown
-
Returns unknown
Returns ((...args: any[]) => any)
-
- (...args: any[]): any
-
Returns any
Create event argments as in
emitter.emit(event.type, ...event())
. Since this event has no value, this function returns an empty array.