Skip to content

Graphorin API reference v0.1.0


Graphorin API reference / @graphorin/provider / / WithFallbackOptions

Interface: WithFallbackOptions

Defined in: packages/provider/src/middleware/with-fallback.ts:21

Options for withFallback.

Stable

Properties

PropertyModifierTypeDescriptionDefined in
fallbacksreadonlyreadonly Provider[]Alternate providers tried in order.packages/provider/src/middleware/with-fallback.ts:23
logger?readonly(message, meta?) => voidOptional log sink; defaults to console.warn.packages/provider/src/middleware/with-fallback.ts:27
shouldFallback?readonly(err) => booleanPredicate deciding whether an error should trigger a fallback.packages/provider/src/middleware/with-fallback.ts:25