Microsoft/TypeScript

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

オープン

#299 opened on 2014/07/29

 (39 件のコメント) (89 件のリアクション) (0 人の担当者)TypeScript (13,395 件のフォーク)batch import
Domain: lib.d.tsHelp WantedSuggestion

Repository metrics

Stars
 (108,860 個のスター)
PR merge metrics
 (PR metrics pending)

説明

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

コントリビューターガイド