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:
parent
acb667b73d
commit
df4d89279a
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue