Skip to content

Commit 82caab2

Browse files
committed
Export isErrorWithResponse
1 parent 1f132e8 commit 82caab2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/core/calculate-retry-delay.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ type Returns<T extends (...args: any) => unknown, V> = (...args: Parameters<T>)
1212

1313
const retryAfterStatusCodes: ReadonlySet<number> = new Set([413, 429, 503]);
1414

15-
const isErrorWithResponse = (error: RetryObject['error']): error is HTTPError | ParseError | MaxRedirectsError => (
15+
export const isErrorWithResponse = (error: RetryObject['error']): error is HTTPError | ParseError | MaxRedirectsError => (
1616
error instanceof HTTPError || error instanceof ParseError || error instanceof MaxRedirectsError
1717
);
1818

0 commit comments

Comments
 (0)