type FeatureExplanation<S> = object & { readonly [K in keyof S["settings"]]: FeatureValue<S["settings"][K]> };The evaluated tree with the reason and the writer on every level that is not available. Like EvaluatedFeature, it keeps the configuration it was read with.
Type Declaration#
| Name | Type | Description |
|---|---|---|
status |
FeatureStatus |
Whether the UI offers this level: 'available', 'unavailable' or 'off'. |
reason? |
FeatureReason |
Why the level is not available. |
by? |
string |
Who wrote what decided; for requires, who defined the feature. - 'sdk': a built-in definition. - 'legacy': a write through cesdk.feature. - 'settings': a change made in the editor’s settings panel. - 'app': every other write, from the app or a plugin. |
rule? |
"base" |
"narrow" |
feature? |
string |
For reason: 'requires': a feature the rule read that is not available. A hint: the rule may have said no for another reason. |
inherited? |
true |
true when the level follows its parent’s when and that rule said no; rule and by are the parent’s. |
error? |
string |
For reason: 'error': what went wrong. |
options |
{ [K in keyof S["options"]]: FeatureExplanation<S["options"][K]> } |
The options inside it, by name, each explained the same way. |
Type Parameters#
| Type Parameter | Default type |
|---|---|
S extends FeatureShape |
FeatureShape |