D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
opt
/
alt
/
alt-nodejs16
/
root
/
lib
/
node_modules
/
npm
/
node_modules
/
@tootallnate
/
once
/
dist
/
Filename :
index.d.ts
back
Copy
/// <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>>;