SafeEventEmitter
Typed EventEmitter with a fallback error listener so unobserved errors do not crash the process.
You are reading the v8 docsDev
ClassTypeScript@discord-player/plugin-host
View sourcepackages/plugin-host/src/utils/safe-event-emitter.ts:7class SafeEventEmitter<Events extends EventMap<Events>> extends EventEmitter<Events>Typed EventEmitter with a fallback error listener so unobserved errors do not crash the process.
Constructors
constructoroverride
constructor<Events extends EventMap<Events>>()Install a no-op error listener while preserving typed event methods.