From df4d89279ac34bcc576cf34d1c1ba76b9012b676 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miroslav=20Bajto=C5=A1?= Date: Thu, 13 Jun 2019 15:24:01 +0200 Subject: [PATCH] Fix types to describe native Promise MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit In version 4.0.0, we switched from Bluebird to native Promises. Signed-off-by: Miroslav Bajtoš --- types/common.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/types/common.d.ts b/types/common.d.ts index 912076c9..f45691a3 100644 --- a/types/common.d.ts +++ b/types/common.d.ts @@ -23,6 +23,6 @@ export type Callback = (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 = PromiseLike | void; +export type PromiseOrVoid = Promise | void;