Ez a hiba, amikor megpróbálja destructure egy form.elementsobjektumot.
// in a class
domRefs: {[key: string]: HTMLFormElement | null} = {
myForm: null
}
onButtonClick = () => {
console.debug(this.domRefs.myForm!.elements) // screenshot below
const {a, b, c} = this.domRefs.myForm!.elements
}
Nem akarom használni a : anytípus, amely nem bocsát ki ezt a hibát.














