From 095ea36e5d7afd2c98d4e30d7b8d565cf1cf3994 Mon Sep 17 00:00:00 2001 From: Phil Kunz Date: Fri, 16 Oct 2020 02:06:50 +0000 Subject: [PATCH] fix(core): update --- ts/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ts/index.ts b/ts/index.ts index 341d1ad..539c815 100644 --- a/ts/index.ts +++ b/ts/index.ts @@ -85,7 +85,7 @@ export const map = async (inputArg: T[], functionArg: IAsyncFunction) => { }; export const timeoutWrap = (promiseArg: Promise, timeoutInMs: number) => { - return new Promise((resolve, reject) => { + return new Promise((resolve, reject) => { setTimeout(() => { reject(new Error('timeout')); }, timeoutInMs);