-
Notifications
You must be signed in to change notification settings - Fork 12.9k
Closed
microsoft/TypeScript-DOM-lib-generator
#699Labels
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 TypeScriptHelp WantedYou can do thisYou can do this
Milestone
Description
TypeScript Version: 3.2.0-dev.201xxxxx
Search Terms: WebGL, idl, float32list
Code
const ctx: WebGLRenderingContext = null;
const value: ArrayLike<number> = [0, 1, 2];
ctx.uniform3fv(0, value);
Expected behavior: Compiles without errors (used to work in 3.0)
Actual behavior: Compiles with error since ArrayLike<number>
isn't assignable to Float32Array
nor number[]
Related Issues: Wrong WebGLRenderingContext interface definition for pixelStorei #27542
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 TypeScriptHelp WantedYou can do thisYou can do this