You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Type arguments for WebGLRenderingContext.uniform*fv as ArrayLike<number> instead of number[] #14925
The uniform*fv methods on WebGLRenderingContext currently accept a Float32Array | number[], however it would be nicer if they could accept Float32Array | ArrayLike<number>. The webgl specification gives two signatures for these methods, one accepting a Float32Array and another accepting a sequence<GLFloat>. Hence it doesn't require an actual array, just something that may be indexed. ArrayLike<number> seems like a better fit.
Activity
mhegazy commentedon Feb 9, 2018
PRs welcomed. You can find more information about contributing lib.d.ts fixes at https://github.com/Microsoft/TypeScript/blob/master/CONTRIBUTING.md#contributing-libdts-fixes.
lankaapura commentedon Feb 9, 2018
Mohamed Hegazy (@mhegazy) I'd like to work on this. Can you confirm following is correct?
dom.generated.d.ts,webworker.generated.d.tsanddom.es6.generated.d.tsmhegazy commentedon Feb 9, 2018
you want to update the input files like https://github.com/Microsoft/TSJS-lib-generator/blob/master/inputfiles/overridingTypes.json, then rerun the script. you then need to update baseline* with your local generated* and send a PR.
lankaapura commentedon Feb 10, 2018
Thanks Mohamed Hegazy (@mhegazy), Create PR microsoft/TypeScript-DOM-lib-generator#368 for this. Let me know if there any issues.