Skip to content

Commit

Permalink
chore: better types for the base layer ref
Browse files Browse the repository at this point in the history
  • Loading branch information
enijar committed May 5, 2023
1 parent 849aa1f commit 6b5f7e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/layer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ function Layer(
}, [optimizedRendering, xrUiContext.optimizedRendering]);

const groupRef = React.useRef<THREE.Group>(null);
const meshRef = React.useRef<THREE.Mesh>(null);
const meshRef = React.useRef<THREE.Mesh<THREE.PlaneGeometry, THREE.MeshBasicMaterial>>(null);
const materialRef = React.useRef<THREE.MeshBasicMaterial>(null);
const childrenGroupRef = React.useRef<THREE.Group>(null);

Expand Down

0 comments on commit 6b5f7e8

Please sign in to comment.