@vttforge/core / RegisteredSetting
Interface: RegisteredSetting<T> ​
One entry of the settings registry: what register was given, plus the three fields it fills in.
Registration normalises as it stores. It falls back to the client scope when the caller names one that does not exist, and to a null default when there is none, because a setting value may be null and may not be undefined. So an entry read back here always carries a real scope and a real default, whatever the call passed.
Extends ​
Type Parameters ​
T ​
T = unknown
Properties ​
choices? ​
readonlyoptionalchoices?:Readonly<Record<string,string>>
Inherited from ​
config? ​
readonlyoptionalconfig?:boolean
Show it in the settings menu. Leave it off for a schema version.
Inherited from ​
default ​
readonlydefault:T
Inherited from ​
hint? ​
readonlyoptionalhint?:string
Inherited from ​
id ​
readonlyid:string
namespace.key, the id the registry is keyed by.
key ​
readonlykey:string
name? ​
readonlyoptionalname?:string
Inherited from ​
namespace ​
readonlynamespace:string
onChange? ​
readonlyoptionalonChange?: (value) =>void
Parameters ​
value ​
T
Returns ​
void
Inherited from ​
range? ​
readonlyoptionalrange?:object
max ​
readonlymax:number
min ​
readonlymin:number
step? ​
readonlyoptionalstep?:number
Inherited from ​
requiresReload? ​
readonlyoptionalrequiresReload?:boolean
Inherited from ​
scope ​
readonlyscope:SettingScope
Inherited from ​
type ​
readonlytype:unknown