Skip to content

RetryConfig

RetryConfig = object

Defined in: packages/fetch-kit/src/types.ts:24

Retry configuration for failed requests.

attempts: number

Defined in: packages/fetch-kit/src/types.ts:26

Maximum number of retry attempts (excluding the initial request).


optional backoff?: BackoffStrategy

Defined in: packages/fetch-kit/src/types.ts:28

Backoff between attempts. Defaults to "exponential".


optional retryOn?: (error, attempt) => boolean

Defined in: packages/fetch-kit/src/types.ts:33

Predicate deciding whether an error is retryable. Defaults to retrying on network errors and 5xx responses.

unknown

number

boolean