Microsoft/TypeScript

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

Open

#299 aperta il 29 lug 2014

Vedi su GitHub
 (39 commenti) (89 reazioni) (0 assegnatari)TypeScript (6726 fork)batch import
Domain: lib.d.tsHelp WantedSuggestion

Metriche repository

Star
 (48.455 star)
Metriche merge PR
 (Merge medio 6g 17h) (9 PR mergiate in 30 g)

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

Guida contributor