Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
KABBOUCHI committed Nov 12, 2022
1 parent edcc4bf commit ed972a6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@instadapp/utils",
"version": "0.4.3",
"version": "0.4.4",
"description": "",
"repository": "instadapp/utils",
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion src/promises/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export async function promiseTimeout<T> (promise: Promise<T>, ms: number) {
try {
return await Promise.race([
promise,
new Promise((_resolve, reject) => {
new Promise<T>((_resolve, reject) => {
timer = setTimeout(() => {
reject(new Error('operation timed out'))
}, ms)
Expand Down

0 comments on commit ed972a6

Please sign in to comment.