LimePot
76722fec47
Going to slowly work on a Bulma site, which will end up being the main site. Currently under the /BETA/ folder so Alpha site will still be main site.
7 lines
407 B
TypeScript
7 lines
407 B
TypeScript
/// <reference types="node" />
|
|
import { EventEmitter } from 'events';
|
|
import { EventNames, EventListenerParameters, AbortSignal } from './types';
|
|
export interface OnceOptions {
|
|
signal?: AbortSignal;
|
|
}
|
|
export default function once<Emitter extends EventEmitter, Event extends EventNames<Emitter>>(emitter: Emitter, name: Event, { signal }?: OnceOptions): Promise<EventListenerParameters<Emitter, Event>>;
|