Interface: ControlSpec<T>
Defined in: control.ts:56
The single-options-object form the aiui compiler completes.
Extends
ControlMeta<T>
Type Parameters
T
T
Properties
description?
optionaldescription?:string
Defined in: control.ts:73
Human description — compiler-lifted from the doc comment, or explicit.
loc?
optionalloc?:string
Defined in: control.ts:75
Definition site "file:line" — compiler-injected.
max?
optionalmax?:number
Defined in: control.ts:46
Inclusive upper bound (numbers). Out-of-range writes are CLAMPED.
Inherited from
min?
optionalmin?:number
Defined in: control.ts:44
Inclusive lower bound (numbers). Out-of-range writes are CLAMPED.
Inherited from
name?
optionalname?:string
Defined in: control.ts:62
Identity: durable key + tool name + grep target. Injected by the compiler from the assignment binding (export const kappa = control(…) → "kappa"); write it explicitly to rename a binding WITHOUT resetting durable state.
options?
optionaloptions?: readonlyT[]
Defined in: control.ts:52
Legal values (enums). A write outside the set THROWS.
Inherited from
scope?
optionalscope?:Scope
Defined in: control.ts:69
Instance qualifier for slice factories (see scope.ts): the effective identity becomes <scope>/<name>, so a slice instantiated twice gets two controls with two durable states instead of silently sharing one. The compiler still injects the LEAF name; the scope is runtime data.
step?
optionalstep?:number
Defined in: control.ts:48
Snap increment (numbers), anchored at min (else 0).
Inherited from
unit?
optionalunit?:string
Defined in: control.ts:50
Display unit ("eV", "ms") — presentation only.
Inherited from
value
value:
T
Defined in: control.ts:71
Initial value (the durable registry adopts an existing one on hot edits).