Typing: Fix some typing errors

This commit is contained in:
Pieter Vander Vennet 2023-08-08 20:44:34 +02:00
parent 5d00f3cc6a
commit 7d5aa725fb
5 changed files with 37 additions and 80 deletions

View file

@ -1,11 +1,12 @@
import { Translation } from "../../i18n/Translation"
import Translations from "../../i18n/Translations"
import { Validator } from "../Validator"
import { ValidatorType } from "../Validators";
export default class FloatValidator extends Validator {
inputmode = "decimal"
inputmode: "decimal" = "decimal"
constructor(name?: string, explanation?: string) {
constructor(name?: ValidatorType, explanation?: string) {
super(name ?? "float", explanation ?? "A decimal number", "decimal")
}