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

ImageBitmap interface missing #14402

Closed
nkemnitz opened this issue Mar 2, 2017 · 1 comment
Closed

ImageBitmap interface missing #14402

nkemnitz opened this issue Mar 2, 2017 · 1 comment
Assignees
Labels
Bug A bug in TypeScript Domain: lib.d.ts The issue relates to the different libraries shipped with TypeScript Fixed A PR has been merged for this issue Help Wanted You can do this

Comments

@nkemnitz
Copy link

nkemnitz commented Mar 2, 2017

TypeScript Version: 2.2.1

Code

window.onload = () => {
    fetch("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg==")
    .then(res => res.blob())
    .then(blob => window.createImageBitmap(blob, { resizeWidth: 128, resizeHeight: 128, resizeQuality: "pixelated" }))
    .then(/* do something amazing */);
}

Expected behavior:
No compilation errors.

Actual behavior:
Property 'createImageBitmap' does not exist on type 'Window'.

ImageBitmap is defined in WHATWG HTML Living Standard. I'll create a PR in a few minutes. :)

@mhegazy mhegazy added Bug A bug in TypeScript Domain: lib.d.ts The issue relates to the different libraries shipped with TypeScript Help Wanted You can do this labels Mar 2, 2017
@mhegazy mhegazy added this to the Community milestone Mar 2, 2017
@mhegazy
Copy link
Contributor

mhegazy commented Mar 2, 2017

PRs welcomed.

@mhegazy mhegazy added the Fixed in TSJS repo Fix merged in https://github.com/Microsoft/TSJS-lib-generator, but not ported yet label Mar 7, 2017
@mhegazy mhegazy modified the milestones: Future, Community, TypeScript 2.3 Mar 7, 2017
@mhegazy mhegazy reopened this Mar 7, 2017
@mhegazy mhegazy self-assigned this Mar 7, 2017
@mhegazy mhegazy added the Fixed A PR has been merged for this issue label Mar 22, 2017
@zhengbli zhengbli removed the Fixed in TSJS repo Fix merged in https://github.com/Microsoft/TSJS-lib-generator, but not ported yet label Mar 23, 2017
@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
Bug A bug in TypeScript Domain: lib.d.ts The issue relates to the different libraries shipped with TypeScript Fixed A PR has been merged for this issue Help Wanted You can do this
Projects
None yet
Development

No branches or pull requests

3 participants