Microsoft/TypeScript
Request to change currentTarget in Event interface for lib.d.ts
Aperta
#299 aperta il 29 lug 2014
Domain: lib.d.tsHelp WantedSuggestion
Metriche repository
- Star
- (108.860 stelle)
- Metriche merge PR
- (Metriche PR in attesa)
Descrizione
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).