-
Notifications
You must be signed in to change notification settings - Fork 13k
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 TypeScriptGood First IssueWell scoped, documented and has the green lightWell scoped, documented and has the green lightHelp WantedYou can do thisYou can do this
Description
TypeScript Version: 3.1.1
Search Terms:
WebGLRenderingContext
pixelStorei
Code
gl.pixelStorei(gl.UNPACK_FLIP_Y_WEBGL, true);
Expected behavior:
well compiled
Actual behavior:
TS2345: Argument of type 'true' is not assignable to parameter of type 'number'.
pixelStorei definition in lib.dom.d.ts (in 3.1-rc and 3.1.1) :
pixelStorei(pname: GLenum, param: GLint): void;
should be :
pixelStorei(pname: GLenum, param: GLint | GLboolean): void;
In 3.0.3, pixelStorei definition was :
pixelStorei(pname: number, param: number | boolean): void;
xiaodeaux and dakom
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 TypeScriptGood First IssueWell scoped, documented and has the green lightWell scoped, documented and has the green lightHelp WantedYou can do thisYou can do this