typescript中与javascript中的以下行在语义上等效的语法是什么//SomeknockouteventhandlermyFunc(data:string,evt:Event){//Ifenterortabkeyupweredetectedaddtheexcusetothecollectionif(evt.enterKey||evt.which==9){//DoSomething}}我在这里遇到的问题与常规javascript事件不同,typescript事件类没有属性enterKey或which。那么,如何在不出现typescript编译错误和丑陋的红色波浪下划线的情况下