forked from MapComplete/MapComplete
Docs: improve comments, error checking and defaults
This commit is contained in:
parent
65da7155fa
commit
ac9792ac43
6 changed files with 47 additions and 3 deletions
|
|
@ -27,6 +27,7 @@ import IconValidator from "./Validators/IconValidator"
|
|||
import TagValidator from "./Validators/TagValidator"
|
||||
import IdValidator from "./Validators/IdValidator"
|
||||
import SlopeValidator from "./Validators/SlopeValidator"
|
||||
import VeloparkValidator from "./Validators/VeloparkValidator"
|
||||
|
||||
export type ValidatorType = (typeof Validators.availableTypes)[number]
|
||||
|
||||
|
|
@ -58,6 +59,7 @@ export default class Validators {
|
|||
"fediverse",
|
||||
"id",
|
||||
"slope",
|
||||
"velopark"
|
||||
] as const
|
||||
|
||||
public static readonly AllValidators: ReadonlyArray<Validator> = [
|
||||
|
|
@ -86,6 +88,7 @@ export default class Validators {
|
|||
new FediverseValidator(),
|
||||
new IdValidator(),
|
||||
new SlopeValidator(),
|
||||
new VeloparkValidator()
|
||||
]
|
||||
|
||||
private static _byType = Validators._byTypeConstructor()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue