RegistryComponentOptions
Defined in: src/component-store.ts:461
Options for a registry-backed component: how to (de)serialize a looked-up
value by its registry id — lookup/selectId bridge value ↔ id, and
idKey/idKind/valueKey name the serialized fields.
Extends
Section titled “Extends”Type Parameters
Section titled “Type Parameters”TValue
Section titled “TValue”TValue
TId extends number | string
TValueKey
Section titled “TValueKey”TValueKey extends string = "def"
Properties
Section titled “Properties”idKey?
Section titled “idKey?”
readonlyoptionalidKey?:string
Defined in: src/component-store.ts:467
Serialized id field name. Defaults to id.
idKind?
Section titled “idKind?”
readonlyoptionalidKind?:RegistryIdKind
Defined in: src/component-store.ts:469
Serialized id primitive kind. Defaults to string.
lookup
Section titled “lookup”
readonlylookup: (id) =>TValue|undefined
Defined in: src/component-store.ts:473
Lookup function used during deserialize. Returns undefined for unknown ids.
Parameters
Section titled “Parameters”TId
Returns
Section titled “Returns”TValue | undefined
migrations?
Section titled “migrations?”
readonlyoptionalmigrations?:Readonly<Record<number,ComponentMigration>>
Defined in: src/component-store.ts:443
Inherited from
Section titled “Inherited from”SimpleComponentOptions.migrations
requires?
Section titled “requires?”
readonlyoptionalrequires?: readonlystring[]
Defined in: src/component-store.ts:444
Inherited from
Section titled “Inherited from”SimpleComponentOptions.requires
selectId
Section titled “selectId”
readonlyselectId: (value) =>TId
Defined in: src/component-store.ts:475
Selects the registry id from the stored value during serialize.
Parameters
Section titled “Parameters”TValue
Returns
Section titled “Returns”TId
valueKey?
Section titled “valueKey?”
readonlyoptionalvalueKey?:TValueKey
Defined in: src/component-store.ts:471
Component field name that holds the looked-up value. Defaults to def.
version?
Section titled “version?”
readonlyoptionalversion?:number
Defined in: src/component-store.ts:445