type EvaluatedFeature<S> = object & { readonly [K in keyof S["settings"]]: FeatureValue<S["settings"][K]> };A feature worked out for a block: a status on every level and settings as their final values.
Each result keeps the configuration it was read with, including the features its rules read: a later
configure or resetEditor() does not change it. Rules run, and settings resolve, when you first read
their level, so the engine values they read are those of that moment. Evaluate again for a current answer.
Type Declaration#
| Name | Type | Description |
|---|---|---|
status |
FeatureStatus |
Whether the UI offers this level: 'available', 'unavailable' or 'off'. |
options |
{ [K in keyof S["options"]]: EvaluatedFeature<S["options"][K]> } |
The options inside it, by name, each worked out the same way. |
Type Parameters#
| Type Parameter | Default type |
|---|---|
S extends FeatureShape |
FeatureShape |