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

@ -9,7 +9,7 @@
import { Unit } from "../../Models/Unit"
import UnitInput from "../Popup/UnitInput.svelte"
export let type: ValidatorType
export let type: ValidatorType
export let feedback: UIEventSource<Translation> | undefined = undefined
export let getCountry: () => string | undefined
export let placeholder: string | Translation | undefined
@ -63,6 +63,7 @@
}
if (unit && isNaN(Number(v))) {
console.debug("Not a number, but a unit is required")
value.setData(undefined)
return
}