Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
olmobrutall opened this issue Apr 6, 2018 · 4 comments
Closed

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

olmobrutall opened this issue Apr 6, 2018 · 4 comments
Assignees
Labels
Bug A bug in TypeScript

Comments

@olmobrutall
Copy link

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.

@a-tarasyuk
Copy link
Contributor

a-tarasyuk commented Apr 6, 2018

@olmobrutall @mhegazy I think, it was regression bug. 2.8.2 uses TouchEvent instead of Event - lib.dom.d.ts#L3556.

@mhegazy
Copy link
Contributor

mhegazy commented Apr 6, 2018

Duplicate of #22565. Fixed by microsoft/TypeScript-DOM-lib-generator#394, should be in TS 2.8.2

@mhegazy mhegazy added the Duplicate An existing issue was already created label Apr 6, 2018
@typescript-bot
Copy link
Collaborator

Automatically closing this issue for housekeeping purposes. The issue labels indicate that it is unactionable at the moment or has already been addressed.

@microsoft microsoft locked and limited conversation to collaborators Jul 30, 2018
@RyanCavanaugh RyanCavanaugh added Bug A bug in TypeScript and removed Duplicate An existing issue was already created labels Aug 24, 2018
@RyanCavanaugh RyanCavanaugh reopened this Aug 24, 2018
@RyanCavanaugh RyanCavanaugh added this to the TypeScript 3.1 milestone Aug 24, 2018
@RyanCavanaugh RyanCavanaugh assigned sandersn and unassigned rbuckton Mar 13, 2019
@sandersn
Copy link
Member

This is fixed now.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bug A bug in TypeScript
Projects
None yet
Development

No branches or pull requests

8 participants