Skip to content

ImageData constructor signature is incorrect #4220

Description

lib.d.ts (and lib.webworkers.d.ts) define the ImageData constructor constructor as taking no arguments, but there should actually be two constructor signatures of the following form according to mdn:

new ImageData(array, width, height);
new ImageData(width, height);

Activity

  1. added a commit that references this issue on Aug 7, 2015
    43cf3b3
  2. jteplitz commented on Aug 7, 2015

    @jteplitz
    Author

    Submitted PR #4224 to fix this. It looks like the constructor is only defined in ES6 compatible browsers so I've only added the definition in lib.es6 and lib.webworkers

  3. mhegazy commented on Aug 7, 2015

    @mhegazy
    Contributor

    We can not accept a PR for this. sorry for the wrong tag. this file is auto generated. we have to update the script that generates this. We should post the sources of this script on another repo to allow the community to update it for similar issues. until then, Zhengbo Li (@zhengbli) will take care of this bug.

  4. locked and limited conversation to collaborators on Jun 19, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Breaking ChangeWould introduce errors in existing codeBugA bug in TypeScriptDomain: lib.d.tsThe issue relates to the different libraries shipped with TypeScriptFixedA PR has been merged for this issue

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions