Microsoft/TypeScript

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

Open

#299 opened on 2014年7月29日

GitHub で見る
 (39 comments) (89 reactions) (0 assignees)TypeScript (48,455 stars) (6,726 forks)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).

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