जब एक destructure की कोशिश कर रहा पर यह त्रुटि दिखाई form.elementsवस्तु।
// 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
}
मैं का उपयोग नहीं करना चाहते हैं : anyप्रकार है कि इस त्रुटि उत्सर्जन नहीं करेगा।














