Search Docs
Loading...
Skip to content

Type Alias: FeatureWhen

type FeatureWhen =
| FeatureRule
| "inherit"
| {
narrow: FeatureRule;
}
| {
extend: FeatureRule;
};

How configure writes when:

  • a rule replaces the base and resets every narrow and extend written before it,
  • { narrow } adds a condition that must also hold,
  • { extend } adds a condition that widens the base, never past a narrow,
  • 'inherit' (options only) follows the parent’s when again. On a feature it throws.