UNPKG

on-one

Version:

Subscribe to one or more events and accept the first emitted

2 lines (1 loc) 133 B
export default function onOne(emitter: NodeJS.EventEmitter, nameOrNames: string | string[], fn: (...args: unknown[]) => void): void;