interface UIElement {
addClickListener(onclick:(this:void,e:Event)=>void):void
}
class Handler {
type:string
onClickBad = (e:Event)=>{
this.type = type
}
}
let h = new Handler()
let uiElement:UIElement = {
addClickListerner(){
}
}
uiElement.addClickListener(h.onCilckBad)