Home:ALL Converter>What will be the type for eventdata in typescript

What will be the type for eventdata in typescript

Ask Time:2018-01-04T16:02:40         Author:Harish

Json Formatter

I have a input box, when I click on it I'll actually send the eventdata of the input box using a function:

<input type="text" (click)="show($event)"/>

I'm using typescript here to write a function hence I need to assign a type to the function parameter

What will be the type for an event?

Typescript Code :

show(eventdata: ?) { }

Author:Harish,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/48091028/what-will-be-the-type-for-eventdata-in-typescript
yy