Skip to content

wrong WebGLRenderingContext interface definition about gl.pixelStore #13093

Closed

Description

@ReadingSteiner

TypeScript Version: 2.1.4

Code

gl.pixelStorei(gl.UNPACK_FLIP_Y_WEBGL, true)

Expected behavior:
well compiled

Actual behavior:
error TS2345: Argument of type 'true' is not assignable to parameter of type 'number'

I checked the lib.d.ts and got this

pixelStorei(pname: number, param: number): void;

but it should be

pixelStorei(pname: number, param: number | boolean): void;

check this API at MDN here

Activity

  1. added
    Bug
    Domain: lib.d.ts
    on Dec 21, 2016
  2. mhegazy commented on Dec 21, 2016

    @mhegazy
    Contributor
  3. added this to the milestone on Dec 21, 2016
  4. added
    Fixed in TSJS repo
    on Jan 3, 2017
  5. modified the milestones: TypeScript 2.2, on Jan 3, 2017
  6. added
    Fixed
    on Feb 2, 2017
  7. removed
    Fixed in TSJS repo
    on Feb 3, 2017
  8. 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

    BugDomain: lib.d.tsFixed

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions