TypeScript does not properly support the TouchEvent constructor #14435
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
Milestone
TypeScript Version: 2.2.1
Code
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.
The text was updated successfully, but these errors were encountered: