Microsoft/TypeScript

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

Open

#299 ouverte le 29 juil. 2014

Voir sur GitHub
 (39 commentaires) (89 réactions) (0 assignés)TypeScript (6 726 forks)batch import
Domain: lib.d.tsHelp WantedSuggestion

Métriques du dépôt

Stars
 (48 455 stars)
Métriques de merge PR
 (Merge moyen 6j 17h) (9 PRs mergées en 30 j)

Description

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

Guide contributeur