Skip to content

RetryRequestOptions

readonly attempts?: number;

Max retry attempts (default: 3)


readonly onRetry?: (attempt, reason) => void;

Optional callback fired on each retry

number

string

void


readonly signal?: AbortSignal;

Optional AbortSignal to cancel retry attempts


readonly transient?: (error) => boolean;

Custom check for whether an error is transient

unknown

boolean