firefly-limiter - v1.0.1
    Preparing search index...

    Interface FallbackOptions

    Configuration for fallback.

    interface FallbackOptions {
        onEvent?: EventSink;
        shouldFallback?: (error: unknown) => boolean;
    }
    Index
    onEvent?: EventSink

    Receives a fallback event carrying the failure that was answered for.

    shouldFallback?: (error: unknown) => boolean

    Which failures deserve the substitute. Defaults to all of them, which is the honest default here: unlike a retry, answering with something is never worse for the dependency.