Closed iwoplaza closed 1 month ago
When calling makeVecSchema we no longer need to cast as unknown first.
makeVecSchema
as unknown
export const vec2i = makeVecSchema({ unitType: i32, byteAlignment: 8, length: 2, label: 'vec2i', make: (x: number, y: number) => new vec2iImpl(x, y), makeFromScalar: (x) => new vec2iImpl(x, x), -}) as unknown as Vec2i; +}) as Vec2i;
The same goes for matrices.
When calling
makeVecSchema
we no longer need to castas unknown
first.The same goes for matrices.