You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ImageData constructor signature is incorrect #4220
lib.d.ts (and lib.webworkers.d.ts) define the ImageData constructor constructor as taking no arguments, but there should actually be two constructor signatures of the following form according to mdn:
new ImageData(array, width, height);
new ImageData(width, height);
Submitted PR #4224 to fix this. It looks like the constructor is only defined in ES6 compatible browsers so I've only added the definition in lib.es6 and lib.webworkers
We can not accept a PR for this. sorry for the wrong tag. this file is auto generated. we have to update the script that generates this. We should post the sources of this script on another repo to allow the community to update it for similar issues. until then, Zhengbo Li (@zhengbli) will take care of this bug.
Activity
Fix microsoft#4220: Fix ImageData Constructor Signature in ES6 Browsers
jteplitz commentedon Aug 7, 2015
Submitted PR #4224 to fix this. It looks like the constructor is only defined in ES6 compatible browsers so I've only added the definition in lib.es6 and lib.webworkers
mhegazy commentedon Aug 7, 2015
We can not accept a PR for this. sorry for the wrong tag. this file is auto generated. we have to update the script that generates this. We should post the sources of this script on another repo to allow the community to update it for similar issues. until then, Zhengbo Li (@zhengbli) will take care of this bug.