@saulx/utils
Advanced tools
Comparing version 2.2.0 to 2.2.1
@@ -9,4 +9,4 @@ /** | ||
export default function retry<T>(promiseFn: (...args: any[]) => Promise<T>, opts: { | ||
timeout: number; | ||
maxRetries: number; | ||
timeout?: number; | ||
maxRetries?: number; | ||
}, ...args: any[]): Promise<T>; |
@@ -10,3 +10,3 @@ "use strict"; | ||
*/ | ||
async function retry(promiseFn, opts, ...args) { | ||
function retry(promiseFn, opts, ...args) { | ||
return new Promise((resolve, reject) => { | ||
@@ -13,0 +13,0 @@ const { timeout = 100, maxRetries = -1 } = opts; |
{ | ||
"name": "@saulx/utils", | ||
"main": "./dist/index.js", | ||
"version": "2.2.0", | ||
"version": "2.2.1", | ||
"scripts": { | ||
@@ -6,0 +6,0 @@ "build": "tsc", |
Sorry, the diff of this file is not supported yet
60837