mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2024-09-20 15:26:15 +08:00
chore: add alternative config schema for the transition period
This commit is contained in:
parent
fc1e646a02
commit
8e2dff43be
|
@ -89,9 +89,10 @@ const CONFIG_SCHEMA = joi.object({
|
|||
singleListCommandLine: joi.string().valid("manual", "on"),
|
||||
capsLockWarning: joi.boolean(),
|
||||
playSoundOnError: joi.string().valid("off", ..._.range(1, 4).map(_.toString)),
|
||||
playSoundOnClick: joi
|
||||
.string()
|
||||
.valid("off", ..._.range(1, 14).map(_.toString)),
|
||||
playSoundOnClick: joi.alternatives().try(
|
||||
joi.boolean(), //todo remove soon
|
||||
joi.string().valid("off", ..._.range(1, 14).map(_.toString))
|
||||
),
|
||||
soundVolume: joi.string().valid("0.1", "0.5", "1.0"),
|
||||
startGraphsAtZero: joi.boolean(),
|
||||
showOutOfFocusWarning: joi.boolean(),
|
||||
|
|
Loading…
Reference in a new issue