Closed sehilyi closed 11 months ago
I am using v5.4.0 and find that there are incorrect typescript types for createAugmentedTypedArray.
createAugmentedTypedArray
opt_type
https://github.com/greggman/twgl.js/blob/a315ee85d8b2ead1e8c7f5972450fdd5ed847b66/dist/5.x/twgl-full.d.ts#L3712-L3718
(which is the file I get on my node_modules/twgl.js)
node_modules/twgl.js
and
https://github.com/greggman/twgl.js/blob/a315ee85d8b2ead1e8c7f5972450fdd5ed847b66/npm/base/index.d.ts#L261
AugmentedTypedArray
push
ArrayBufferView
If you could share with me how I can update this, I can make a PR for that.
Thanks!
You can try v5.4.1
I'm not 100% sure createAugmentedTypedArray is compatible with typescript but a few simple tests seemed to work
I can confirm that the TS issue is addressed in v5.4.1. Thanks!!
I am using v5.4.0 and find that there are incorrect typescript types for
createAugmentedTypedArray
.opt_type
, but it seems to be actually optional. This is inconsistent betweenhttps://github.com/greggman/twgl.js/blob/a315ee85d8b2ead1e8c7f5972450fdd5ed847b66/dist/5.x/twgl-full.d.ts#L3712-L3718
(which is the file I get on my
node_modules/twgl.js
)and
https://github.com/greggman/twgl.js/blob/a315ee85d8b2ead1e8c7f5972450fdd5ed847b66/npm/base/index.d.ts#L261
AugmentedTypedArray
that has apush
function attached, but it is defined asArrayBufferView
.If you could share with me how I can update this, I can make a PR for that.
Thanks!