1 | export default class Deferred<T> {
|
2 | private _resolver;
|
3 | private _rejector;
|
4 | readonly promise: Promise<T>;
|
5 | constructor();
|
6 | callback(callback: Function): any;
|
7 | rejectOnError(callback: Function): any;
|
8 | resolve(value?: T): void;
|
9 | reject(error?: Error): void;
|
10 | protected _finalize(): void;
|
11 | }
|