Build NapCat Artifacts / Windows Loader Test (push) Canceled after 0s
Build NapCat Artifacts / Type Check & Test (push) Canceled after 0s
Build NapCat Artifacts / Build NapCat.Framework (push) Canceled after 0s
Build NapCat Artifacts / Build NapCat.Shell (push) Canceled after 0s
8 lines
407 B
Plaintext
8 lines
407 B
Plaintext
/// <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>>;
|