Fix types to describe native Promise

In version 4.0.0, we switched from Bluebird to native Promises.

Signed-off-by: Miroslav Bajtoš <mbajtoss@gmail.com>
This commit is contained in:
Miroslav Bajtoš 2019-06-13 15:24:01 +02:00
parent acb667b73d
commit df4d89279a
No known key found for this signature in database
GPG Key ID: 6F2304BA9361C7E3
1 changed files with 2 additions and 2 deletions

4
types/common.d.ts vendored
View File

@ -23,6 +23,6 @@ export type Callback<T = any> = (err?: any | null, result?: T) => void;
/**
* Return export type for promisified Node.js async methods.
*
* Note that juggler uses Bluebird, not the native Promise.
* Note that starting with version 4.0, juggler uses native Promises.
*/
export type PromiseOrVoid<T = any> = PromiseLike<T> | void;
export type PromiseOrVoid<T = any> = Promise<T> | void;