Skip to content
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

TypeScript does not properly support the TouchEvent constructor #14435

Closed
MadaraUchiha opened this issue Mar 3, 2017 · 0 comments · Fixed by microsoft/TypeScript-DOM-lib-generator#226
Assignees
Labels
Bug A bug in TypeScript Domain: lib.d.ts The issue relates to the different libraries shipped with TypeScript Fixed A PR has been merged for this issue Help Wanted You can do this

Comments

@MadaraUchiha
Copy link

MadaraUchiha commented Mar 3, 2017

TypeScript Version: 2.2.1

Code

const event = new TouchEvent('touchstart', {ctrlKey: true});

Expected behavior:

No error. As per MDN

Actual behavior:
The TouchEvent constructor in lib.d.ts is defined to not accept parameters.


Stack Overflow question about this: How to manually trigger a Touch event in TypeScript?

Note:
I already have a PR ready for the fix, based on the same MDN article.

@mhegazy mhegazy added Help Wanted You can do this Bug A bug in TypeScript Domain: lib.d.ts The issue relates to the different libraries shipped with TypeScript labels Mar 3, 2017
@mhegazy mhegazy added this to the Community milestone Mar 3, 2017
@mhegazy mhegazy added the Fixed in TSJS repo Fix merged in https://github.com/Microsoft/TSJS-lib-generator, but not ported yet label Apr 4, 2017
@mhegazy mhegazy self-assigned this Apr 4, 2017
@mhegazy mhegazy modified the milestones: TypeScript 2.3, Community Apr 4, 2017
@mhegazy mhegazy reopened this Apr 4, 2017
@mhegazy mhegazy added the Fixed A PR has been merged for this issue label Apr 13, 2017
@mhegazy mhegazy added Fixed A PR has been merged for this issue and removed Fixed A PR has been merged for this issue Fixed in TSJS repo Fix merged in https://github.com/Microsoft/TSJS-lib-generator, but not ported yet labels Aug 24, 2017
@microsoft microsoft locked and limited conversation to collaborators Jun 19, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bug A bug in TypeScript Domain: lib.d.ts The issue relates to the different libraries shipped with TypeScript Fixed A PR has been merged for this issue Help Wanted You can do this
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants