Skip to content

Commit

Permalink
[fix] Add missing math types
Browse files Browse the repository at this point in the history
  • Loading branch information
krispya committed Oct 29, 2023
1 parent e5291a0 commit 2ec2bbc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/fiber/src/three-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ export type Color = MathType<THREE.Color>
export type Layers = MathType<THREE.Layers>
export type Quaternion = MathType<THREE.Quaternion>
export type Euler = MathType<THREE.Euler>
export type Matrix3 = MathType<THREE.Matrix3>
export type Matrix4 = MathType<THREE.Matrix4>

export type WithMathProps<P> = { [K in keyof P]: P[K] extends MathRepresentation | THREE.Euler ? MathType<P[K]> : P[K] }

Expand Down

0 comments on commit 2ec2bbc

Please sign in to comment.