Browse Source

fix(types): added Ref type to controls on ctx

alvarosabu 9 months ago
parent
commit
415de9461c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/composables/useTresContextProvider/index.ts

+ 1 - 1
src/composables/useTresContextProvider/index.ts

@@ -54,7 +54,7 @@ export interface TresContext {
   extend: (objects: any) => void
   camera: ComputedRef<Camera | undefined>
   cameras: DeepReadonly<Ref<Camera[]>>
-  controls: TresControl | null
+  controls: Ref<TresControl | null>
   renderer: ShallowRef<WebGLRenderer>
   raycaster: ShallowRef<Raycaster>
   perf: PerformanceState