From 16459acc7c7f896d731bb39cb80b885645f8a47d Mon Sep 17 00:00:00 2001 From: Tim Perry Date: Fri, 7 Jun 2024 16:21:31 +0200 Subject: [PATCH] Fix type of delay() promise --- src/promises.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/promises.ts b/src/promises.ts index 270f680..8e86830 100644 --- a/src/promises.ts +++ b/src/promises.ts @@ -8,7 +8,7 @@ export const delay = (ms: number, options: { */ unref?: boolean } = {}) => - new Promise((resolve) => { + new Promise((resolve) => { const timer = setTimeout(resolve, ms); if (options.unref && (timer as any).unref) {