RetryConfig
Type Alias: RetryConfig
Section titled “Type Alias: RetryConfig”RetryConfig =
object
Defined in: packages/fetch-kit/src/types.ts:24
Retry configuration for failed requests.
Properties
Section titled “Properties”attempts
Section titled “attempts”attempts:
number
Defined in: packages/fetch-kit/src/types.ts:26
Maximum number of retry attempts (excluding the initial request).
backoff?
Section titled “backoff?”
optionalbackoff?:BackoffStrategy
Defined in: packages/fetch-kit/src/types.ts:28
Backoff between attempts. Defaults to "exponential".
retryOn?
Section titled “retryOn?”
optionalretryOn?: (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.
Parameters
Section titled “Parameters”unknown
attempt
Section titled “attempt”number
Returns
Section titled “Returns”boolean