diff --git a/index.d.ts b/index.d.ts index 796e95f..2803d99 100644 --- a/index.d.ts +++ b/index.d.ts @@ -4,8 +4,8 @@ export interface RetryOptions{ retryMaxDuration?: number retryInitialDelay?: number retryBackoff?: number - retryOnHttpError?: (error: Error) => boolean - retryOnHttpResponse?: (response: Response) => boolean + retryOnHttpError?: (error: Error) => Promise | boolean + retryOnHttpResponse?: (response: Response) => Promise | boolean socketTimeout?: number forceSocketTimeout?: boolean }