-
Notifications
You must be signed in to change notification settings - Fork 12.5k
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
ImageData.data should be a Uint8ClampedArray, not a number[] #949
Comments
We'll be taking a look at a bunch of lib.d.ts bugs all together in the future. |
Other than simply leaving an ImageData object untyped, is there a workaround for this? A complication here is that Firefox 38 already uses an ES6 |
@darrylring, yes. just add a reference to lib.es6.d.ts either on the commandline or using a /// reference. |
@zhengbli can we get this in soon? |
Sure I'll send a PR soon. |
In version 1.0.1, ImageData.data was a Uint8Array. In version 1.1 it becomes a number[]. Seems like it should be a Uint8ClampedArray.
Reference:
https://developer.mozilla.org/en-US/docs/Web/API/ImageData#Browser_compatibility
The text was updated successfully, but these errors were encountered: