featureFlag
Αυτό το περιεχόμενο δεν είναι ακόμη διαθέσιμο στη γλώσσα σου.
featureFlag(
options):PipelineBehaviorTuple<FeatureFlagBehavior,FeatureFlagBehaviorOptions>
Defined in: packages/pipeline-feature-flags/src/helpers/feature-flag.intent.ts:25
Returns a feature-flag behavior entry for pipeline.wrap() or createPipeline({ globalBehaviors }).
Parameters
Section titled “Parameters”options
Section titled “options”Required flag key plus evaluation and fallback options.
Returns
Section titled “Returns”PipelineBehaviorTuple<FeatureFlagBehavior, FeatureFlagBehaviorOptions>
The behavior class and options tuple. A disabled flag prevents handler execution; the behavior returns the configured fallback or throws FeatureDisabledError.
Example
Section titled “Example”@pipeline.wrap({ kind: 'command' }, featureFlag({ flag: 'user-registration', defaultValue: false, fallback: () => ({ disabled: true }),}))