Microsoft/TypeScript

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

Ouverte

#299 ouverte le 29 juil. 2014

 (39 commentaires) (89 réactions) (0 personne assignée)TypeScript (13 395 forks)batch import
Domain: lib.d.tsHelp WantedSuggestion

Métriques du dépôt

Stars
 (108 860 étoiles)
Métriques de merge PR
 (Métriques PR en attente)

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