* Emit an event to all listeners * Public API for emitting collection events
(
event: T,
eventPayload: AllCollectionEvents[T],
)
| 136 | * Public API for emitting collection events |
| 137 | */ |
| 138 | emit<T extends keyof AllCollectionEvents>( |
| 139 | event: T, |
| 140 | eventPayload: AllCollectionEvents[T], |
| 141 | ): void { |
| 142 | this.emitInner(event, eventPayload) |
| 143 | } |
| 144 | |
| 145 | emitStatusChange<T extends CollectionStatus>( |
| 146 | status: T, |