RetryRequestOptions
Properties
Section titled “Properties”attempts?
Section titled “attempts?”readonly attempts?: number;Max retry attempts (default: 3)
onRetry?
Section titled “onRetry?”readonly onRetry?: (attempt, reason) => void;Optional callback fired on each retry
Parameters
Section titled “Parameters”attempt
Section titled “attempt”number
reason
Section titled “reason”string
Returns
Section titled “Returns”void
signal?
Section titled “signal?”readonly signal?: AbortSignal;Optional AbortSignal to cancel retry attempts
transient?
Section titled “transient?”readonly transient?: (error) => boolean;Custom check for whether an error is transient
Parameters
Section titled “Parameters”unknown
Returns
Section titled “Returns”boolean