invoke
invoke: Record extends object ? <E extends Exclude<keyof Record, number>>(event: E, ...args: EventEmitterArgumentTypes<Record[E]>) => IterableIterator<EventEmitterReturnType<Record[E]>> : (event: EventEmitterEvent, ...args: unknown[]) => IterableIterator<...>
Interface for emitting an event