Search Docs
Loading...
Skip to content

Type Alias: FeatureReason

type FeatureReason = "switched-off" | "requires" | "when" | "parent" | "error";

Why a level is not available.

  • 'switched-off': written enabled: false.
  • 'requires': its requires said no; feature names a dependency that failed.
  • 'when': its when said no; rule says whether the base or a narrow decided.
  • 'parent': the parent is off or fails requires; the parent’s entry has the real reason.
  • 'error': a rule threw, or rules read each other in a loop; error has the message, which is also logged once.