Bir destructure çalışırken bu hata görünür form.elementsnesne.
// 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
}
Ben kullanmak istemiyorum : anybu hatayı yaymaz türü.














