Themes: add currency type which does some reformatting

This commit is contained in:
Pieter Vander Vennet 2024-04-27 01:47:51 +02:00
parent c8eef2c8f6
commit d40474d47e
2 changed files with 76 additions and 0 deletions

View file

@ -28,6 +28,7 @@ import TagValidator from "./Validators/TagValidator"
import IdValidator from "./Validators/IdValidator"
import SlopeValidator from "./Validators/SlopeValidator"
import VeloparkValidator from "./Validators/VeloparkValidator"
import CurrencyValidator from "./Validators/CurrencyValidator"
export type ValidatorType = (typeof Validators.availableTypes)[number]
@ -60,6 +61,7 @@ export default class Validators {
"id",
"slope",
"velopark",
"currency"
] as const
public static readonly AllValidators: ReadonlyArray<Validator> = [
@ -89,6 +91,7 @@ export default class Validators {
new IdValidator(),
new SlopeValidator(),
new VeloparkValidator(),
new CurrencyValidator()
]
private static _byType = Validators._byTypeConstructor()