Skip to content

SettingDefinition

Defined in: core.ts:448

Declares a user-configurable setting in the plugin manifest.

The host validates values against type, enum membership, and numeric min/max constraints before persisting.

key: string

Defined in: core.ts:450

Setting key used in settings.get() / settings.set().


label: string

Defined in: core.ts:452

Human-readable label shown in the settings UI.


type: "string" | "number" | "bool" | "enum"

Defined in: core.ts:454

Value type: bool, number, enum (pick from options), or string.


optional default?: unknown

Defined in: core.ts:456

Default value when no user preference is stored.


optional options?: unknown[]

Defined in: core.ts:458

Valid options for “enum” type settings.


optional min?: number

Defined in: core.ts:460

Minimum value for “number” type settings.


optional max?: number

Defined in: core.ts:462

Maximum value for “number” type settings.