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);