UNPKG

670 BTypeScriptView Raw
1/// <reference types="mocha" />
2/// <reference types="node" />
3import { Disposable, DisposableCollection } from '../common';
4/**
5 * @param collection If a collection is passed in, the new disposable is added to that collection. Otherwise, the new disposable is returned.
6 */
7export declare function createDisposableListener<K>(emitter: NodeJS.EventEmitter, signal: string, handler: (event: K, ...args: unknown[]) => unknown, collection: DisposableCollection): void;
8export declare function createDisposableListener<K>(emitter: NodeJS.EventEmitter, signal: string, handler: (event: K, ...args: unknown[]) => unknown): Disposable;
9//# sourceMappingURL=event-utils.d.ts.map
\No newline at end of file