Sha256: 3ad728027671c2c3c829e21803f8d7a15b29d808293644d50d928213280c072d
Contents?: true
Size: 1.83 KB
Versions: 9
Compression:
Stored size: 1.83 KB
Contents
declare module "events" { class internal extends NodeJS.EventEmitter { } interface NodeEventTarget { once(event: string | symbol, listener: (...args: any[]) => void): this; } interface DOMEventTarget { addEventListener(event: string, listener: (...args: any[]) => void, opts?: { once: boolean }): any; } namespace internal { function once(emitter: NodeEventTarget, event: string | symbol): Promise<any[]>; function once(emitter: DOMEventTarget, event: string): Promise<any[]>; class EventEmitter extends internal { /** @deprecated since v4.0.0 */ static listenerCount(emitter: EventEmitter, event: string | symbol): number; static defaultMaxListeners: number; addListener(event: string | symbol, listener: (...args: any[]) => void): this; on(event: string | symbol, listener: (...args: any[]) => void): this; once(event: string | symbol, listener: (...args: any[]) => void): this; prependListener(event: string | symbol, listener: (...args: any[]) => void): this; prependOnceListener(event: string | symbol, listener: (...args: any[]) => void): this; removeListener(event: string | symbol, listener: (...args: any[]) => void): this; off(event: string | symbol, listener: (...args: any[]) => void): this; removeAllListeners(event?: string | symbol): this; setMaxListeners(n: number): this; getMaxListeners(): number; listeners(event: string | symbol): Function[]; rawListeners(event: string | symbol): Function[]; emit(event: string | symbol, ...args: any[]): boolean; eventNames(): Array<string | symbol>; listenerCount(type: string | symbol): number; } } export = internal; }
Version data entries
9 entries across 9 versions & 1 rubygems