Microsoft/TypeScript

Request to change currentTarget in Event interface for lib.d.ts

Open

#299 建立於 2014年7月29日

在 GitHub 查看
 (39 留言) (89 反應) (0 負責人)TypeScript (48,455 star) (6,726 fork)batch import
Domain: lib.d.tsHelp WantedSuggestion

描述

When using the Event interface from lib.d.ts, and attaching a listener, the callback will get an object of type Event. However, the Event's currentTarget property is of type EventTarget (whereas it's should be of type Element/HTMLElement).

貢獻者指南