fix r3f types

This commit is contained in:
tresabhi committed 2026-06-13 14:53:56 -05:00
1 parent dacdc9ae53
commit 9418526897
5 files changed
+4 -10

No files matched your search

-2
View File
@@ -27,8 +27,6 @@
"@react-three/drei": "^10.7.7",
"@react-three/fiber": "^9.6.1",
"@types/lodash-es": "^4.17.12",
"@types/react": "^19.2.15",
"@types/react-dom": "^19.2.3",
"@types/three": "^0.184.1",
"@vite-pwa/astro": "^1.2.0",
"@wooorm/starry-night": "^3.9.0",
+1
View File
@@ -0,0 +1 @@
/// <reference types="@react-three/fiber" />
@@ -2,7 +2,6 @@ import { useLoader } from "@react-three/fiber";
import { useEffect } from "react";
import { Mesh, MeshStandardMaterial } from "three";
import { GLTFLoader } from "three-stdlib";
import { OnObjectUpdate } from "three/src/nodes/utils/EventNode.js";
export function useTankModel(url: string, map: Record<string, boolean>) {
const gltf = useLoader(GLTFLoader, url);
+3 -3
View File
@@ -2,7 +2,7 @@
"extends": ["../../tsconfig.json", "astro/tsconfigs/base"],
"compilerOptions": {
"paths": {
"@protos/*": ["../../packages/closed/protos/*"]
}
}
"@protos/*": ["../../packages/closed/protos/*"],
},
},
}