Microsoft/TypeScript

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

开放

#299 创建于 2014年7月29日

 (39 条评论) (89 个反应) (0 位负责人)TypeScript (13,395 个派生)batch import
Domain: lib.d.tsHelp WantedSuggestion

仓库指标

星标
 (108,860 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

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).

贡献者指南