-
Notifications
You must be signed in to change notification settings - Fork 13.2k
Closed
Labels
BugA bug in TypeScriptA bug in TypeScriptDomain: lib.d.tsThe issue relates to the different libraries shipped with TypeScriptThe issue relates to the different libraries shipped with TypeScriptFixedA PR has been merged for this issueA PR has been merged for this issueHelp WantedYou can do thisYou can do this
Milestone
Description
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
Metadata
Metadata
Assignees
Labels
BugA bug in TypeScriptA bug in TypeScriptDomain: lib.d.tsThe issue relates to the different libraries shipped with TypeScriptThe issue relates to the different libraries shipped with TypeScriptFixedA PR has been merged for this issueA PR has been merged for this issueHelp WantedYou can do thisYou can do this