Skip to content
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's data isn't Uint8ClampedArray! #5338

Closed
GoToLoop opened this issue Oct 20, 2015 · 2 comments
Closed

ImageData's data isn't Uint8ClampedArray! #5338

GoToLoop opened this issue Oct 20, 2015 · 2 comments
Labels
Duplicate An existing issue was already created

Comments

@GoToLoop
Copy link

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

@saschanaz
Copy link
Contributor

#949 has said this a year ago but unfortunately this hasn't been fixed yet :/

@mhegazy mhegazy added the Duplicate An existing issue was already created label Oct 20, 2015
@mhegazy
Copy link
Contributor

mhegazy commented Oct 20, 2015

As @saschanaz mentioned. it is a duplicate.

@mhegazy mhegazy closed this as completed Oct 20, 2015
@microsoft microsoft locked and limited conversation to collaborators Jun 19, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Duplicate An existing issue was already created
Projects
None yet
Development

No branches or pull requests

3 participants