diff --git a/packages/shared-lib/src/error.ts b/packages/shared-lib/src/error.ts index f9626f39..b0860114 100644 --- a/packages/shared-lib/src/error.ts +++ b/packages/shared-lib/src/error.ts @@ -71,7 +71,7 @@ export interface RetryOptions { */ export async function withRetry( func: (failedCount: number) => Promise, - { beforeRetry, handleError, retryCount = 3, retryLogger, sleepMilliseconds = 0 }: RetryOptions + { beforeRetry, handleError, retryCount = 3, retryLogger, sleepMilliseconds = 0 }: RetryOptions = {} ): Promise { let failedCount = 0; for (;;) {