Skip to content

TouchEvent Typing in lib.dom.d.ts #23204

@olmobrutall

Description

@olmobrutall

Hi TS team,

This is how lib.dom.d.ts used to look in 2.7:

interface DocumentEventMap extends GlobalEventHandlersEventMap {
   ...
     "suspend": Event;
    "timeupdate": Event;
    "touchcancel": TouchEvent;
    "touchend": TouchEvent;
    "touchmove": TouchEvent;
    "touchstart": TouchEvent;
    "volumechange": Event;
   ...
}  

But in the latest lib.dom.d.ts for ts 2.8

interface DocumentEventMap extends GlobalEventHandlersEventMap {
   ...
   "suspend": Event;
    "timeupdate": Event;
    "touchcancel": Event;
    "touchend": Event;
    "touchmove": Event;
    "touchstart": Event;
    "unload": Event;
   ...
}  

Why TouchEvent is gone?

Thanks in advance.

Metadata

Metadata

Assignees

Labels

BugA bug in TypeScript

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions