Skip to content

[Web API type definition issue] ImageData constructor missing type Float16Array #2107

@cmahnke

Description

@cmahnke

Summary

Missing type in constructor

Expected vs. Actual Behavior

This is a fairly recent change, the ImageData constructor now accepts Float16Array as type for data in it's constructor, see:
https://html.spec.whatwg.org/multipage/imagebitmap-and-animations.html#imagedataarray

There already is an issue on MDN to reflect this.

Playground Link

No response

Browser Support

  • This API is supported in at least two major browser engines (not two Chromium-based browsers).

Have Tried The Latest Releases

  • This issue applies to the latest release of TypeScript.
  • This issue applies to the latest release of @types/web.

Additional Context

Browser support:

  • Currently this is implemented in Chromium 137 and later
  • The current source of Safari also has support, I haven't checked if this is already in the latest published version

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions