greggman / wgpu-matrix

Fast WebGPU 3d math library
https://wgpu-matrix.org
MIT License
298 stars 13 forks source link

Re exporting the types when using with TypeScript #11

Closed hsimpson closed 1 year ago

hsimpson commented 1 year ago

The types like Vec3, Vec4, Mat3, Mat4 etc. are not all re exported from wgpu-matrix.d.ts

greggman commented 1 year ago

doh! fixed in 2.1.1

greggman commented 1 year ago

looks like this wasn't actually fixed until 2.2.2. I exported the types in typescript in 2.1.1 but a bug in rollup meant the type files weren't written. It should be fixed now

hsimpson commented 1 year ago

It worked in 2.2.1 for me but ok. Issue can be closed.