Explorar el Código

fix(core): type issues on state

alvarosabu hace 2 años
padre
commit
46c9b52c2e
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      packages/tres/src/core/useTres/index.ts

+ 1 - 1
packages/tres/src/core/useTres/index.ts

@@ -17,7 +17,7 @@ export interface TresState {
 }
 
 const state: TresState = shallowReactive({
-  camera: null,
+  camera: undefined,
   cameras: [],
 })