1 | /// <reference types="mocha" />
|
2 | /// <reference types="node" />
|
3 | import { 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 | */
|
7 | export declare function createDisposableListener<K>(emitter: NodeJS.EventEmitter, signal: string, handler: (event: K, ...args: unknown[]) => unknown, collection: DisposableCollection): void;
|
8 | export 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 |