Remove anys

This commit is contained in:
Adria Navarro 2025-03-10 16:30:39 +01:00
parent 07f90746d2
commit e9206b34eb
2 changed files with 5 additions and 4 deletions

View File

@ -40,7 +40,7 @@
let formField: Readable<FormField> | undefined
let touched = false
let labelNode: any
let labelNode: HTMLElement | undefined
// Memoize values required to register the field to avoid loops
const formStep = formStepContext || writable(1)
@ -100,10 +100,10 @@
)
}
const updateLabel = (e: any) => {
const updateLabel = (e: Event) => {
if (touched) {
// @ts-expect-error and TODO updateProp isn't recognised - need builder TS conversion
builderStore.actions.updateProp("label", e.target.textContent)
const label = e.target as HTMLLabelElement
builderStore.actions.updateProp("label", label.textContent)
}
touched = false
}

View File

@ -92,6 +92,7 @@ export interface SDK {
componentId: string,
fullAncestorType: string
) => void
updateProp: (key: string, value: any) => void
}
}
}