We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
https://github.com/Microsoft/TypeScript/blob/master/lib/lib.d.ts#L11052 https://github.com/Microsoft/TypeScript/blob/master/lib/lib.es6.d.ts#L12367
interface ImageData { data: number[]; // should be Uint8ClampedArray type here... height: number; width: number; }
According to https://developer.Mozilla.org/en-US/docs/Web/API/ImageData/data data readonly property needs to be Uint8ClampedArray, not some mere number[].
number[]
The text was updated successfully, but these errors were encountered:
#949 has said this a year ago but unfortunately this hasn't been fixed yet :/
Sorry, something went wrong.
As @saschanaz mentioned. it is a duplicate.
No branches or pull requests
https://github.com/Microsoft/TypeScript/blob/master/lib/lib.d.ts#L11052
https://github.com/Microsoft/TypeScript/blob/master/lib/lib.es6.d.ts#L12367
According to https://developer.Mozilla.org/en-US/docs/Web/API/ImageData/data
data readonly property needs to be Uint8ClampedArray, not some mere
number[]
.The text was updated successfully, but these errors were encountered: