Fix type errors

This commit is contained in:
2025-07-17 20:47:03 +02:00
parent 1362d0a289
commit 1156bc315e
43 changed files with 372 additions and 323 deletions

View File

@ -1,9 +1,12 @@
import type { Ref } from 'vue'
import SlInput from '@shoelace-style/shoelace/dist/components/input/input.js'
//import SlInput from '@shoelace-style/shoelace/dist/components/input/input.js'
export function setFieldValidation(field: Ref<SlInput>, errorMessage: string = '') {
export function setFieldValidation(field: Ref<any>, errorMessage: string = '') {
// Set validation on a field
if (!field.value) {
return
}
field.value?.setCustomValidity(errorMessage)
field.value?.reportValidity()
}