Problem
For example, the parameter has the following type { component: any; element: ElementRef; }, of which I only want the element:
{ component: any; element: ElementRef; }
You need to specify the type of the argument after the destructuring expression
onTextBoxInit({ element }: {element: ElementRef }){}