Skip to content

FeatureFallbackFactory

FeatureFallbackFactory = (context) => unknown | Promise<unknown>

Defined in: packages/pipeline-feature-flags/src/interfaces/feature-flags-options.interface.ts:33

Returns a fallback value to emit when the gating flag is disabled, instead of throwing FeatureDisabledError. Receives the pipeline context so the fallback can be request-aware.

IPipelineContext

unknown | Promise<unknown>