Microsoft/TypeScript
Request to change currentTarget in Event interface for lib.d.ts
Offen
#299 geöffnet am 29.07.2014
Domain: lib.d.tsHelp WantedSuggestion
Repository-Metriken
- Stars
- (108.860 Sterne)
- PR-Merge-Metriken
- (PR-Metriken ausstehend)
Beschreibung
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).