Merge pull request #1749 from strongloop/fix/typings

Fix types to describe native Promise
This commit is contained in:
Miroslav Bajtoš 2019-06-13 15:37:40 +02:00 committed by GitHub
commit 5fcad43aab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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;