Skip to content

Tankōbon / shared/settings / SETTING_VALIDATORS

Variable: SETTING_VALIDATORS ​

const SETTING_VALIDATORS: SettingValidators

Defined in: shared/settings.ts:329

One type guard per setting, the single definition of what a stored value may be. The main process checks every settings:set call and every imported settings object against it, so neither a compromised renderer nor a hand-edited export can store readingMode: "webtoon" or pageSpacing: -400. A new setting needs an entry here (the type forces it).