Last change
on this file since fa375fe was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
508 bytes
|
Line | |
---|
1 | /// <reference types="node" />
|
---|
2 | import { EventEmitter } from 'events';
|
---|
3 | declare function once<T>(emitter: EventEmitter, name: string): once.CancelablePromise<T>;
|
---|
4 | declare namespace once {
|
---|
5 | interface CancelFunction {
|
---|
6 | (): void;
|
---|
7 | }
|
---|
8 | interface CancelablePromise<T> extends Promise<T> {
|
---|
9 | cancel: CancelFunction;
|
---|
10 | }
|
---|
11 | type CancellablePromise<T> = CancelablePromise<T>;
|
---|
12 | function spread<T extends any[]>(emitter: EventEmitter, name: string): once.CancelablePromise<T>;
|
---|
13 | }
|
---|
14 | export = once;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.