Skip to content

Commit

Permalink
fix(types): remove usage of THREE.Vector (#3161)
Browse files Browse the repository at this point in the history
  • Loading branch information
Methuselah96 authored Jan 31, 2024
1 parent 4202776 commit c43d855
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/fiber/src/three-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export type Matrix4 = THREE.Matrix4 | Parameters<THREE.Matrix4['set']> | Readonl
/**
* Turn an implementation of THREE.Vector in to the type that an r3f component would accept as a prop.
*/
type VectorLike<VectorClass extends THREE.Vector> =
type VectorLike<VectorClass extends THREE.Vector2 | THREE.Vector3 | THREE.Vector4> =
| VectorClass
| Parameters<VectorClass['set']>
| Readonly<Parameters<VectorClass['set']>>
Expand Down

0 comments on commit c43d855

Please sign in to comment.