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.
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.