From 03431ca9068f18a7fa2b5e30dcbb142c9450cc85 Mon Sep 17 00:00:00 2001 From: Federico Brigante Date: Fri, 25 Nov 2022 17:02:37 +0800 Subject: [PATCH] Update index.test-d.ts --- index.test-d.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/index.test-d.ts b/index.test-d.ts index 3a54965..2d92542 100644 --- a/index.test-d.ts +++ b/index.test-d.ts @@ -16,6 +16,9 @@ pTimeout(delayedPromise(), {milliseconds: 50}).then(value => { pTimeout(delayedPromise(), {milliseconds: 50, message: 'error'}).then(value => { expectType(value); }); +pTimeout(delayedPromise(), {milliseconds: 50, message: false}).then(value => { + expectType(value); +}); pTimeout(delayedPromise(), {milliseconds: 50, message: new Error('error')}).then(value => { expectType(value); });