FallbackOptions
Auto-generated API reference for FallbackOptions.
Interface: FallbackOptions
Defined in: fallback.ts:3
#Properties
#onFallback?
optionalonFallback?: (from) =>void
Defined in: fallback.ts:10
Observability hook — fires when one adapter fails and the chain advances.
#Parameters
from
error
Error
id
string
index
number
#Returns
void
#shouldRetry?
optionalshouldRetry?: (error,index) =>boolean
Defined in: fallback.ts:8
Predicate deciding whether an error from a given adapter should trigger fall-through to the next. Default: always retry the next.
#Parameters
error
Error
index
number
#Returns
boolean