UNPKG

on-one

Version:

Subscribe to one or more events and accept the first emitted

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