Search Docs
Loading...
Skip to content

Interface: FeatureDefinition

A feature as define takes it.

Extends#

Indexable#

[setting: string]:
| boolean
| FeatureRule
| FeatureSettingSchema & { default: unknown; }
| ((context) => boolean)
| {
[name: string]: FeatureNodeDefinition;
}

Properties#

Property Type Description Inherited from
id string - -
title? string Plain English for docs and agents; end users never see it. -
description? string Plain English for docs and agents; end users never see it. -
enabled? boolean The starting value. Left out, it is true. FeatureNodeDefinition.enabled
when? FeatureRule The starting rule for where it shows. Options default to their parent’s when. FeatureNodeDefinition.when
options? object Nested capabilities, by what they belong to. FeatureNodeDefinition.options
requires? (context) => boolean What it needs to work at all: a capability of the engine or the block. It always applies, cascades to every option inside, and nothing can override it. FeatureNodeDefinition.requires