Skip to content

Commit

Permalink
fix: build dts error TS7056
Browse files Browse the repository at this point in the history
  • Loading branch information
0x-jerry committed Nov 8, 2024
1 parent ad0c850 commit f26d7f2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/core/controls/CameraControls.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import {
Vector3,
Vector4,
} from 'three'
import { computed, onUnmounted, ref, toRefs, watch, watchEffect } from 'vue'
import { computed, onUnmounted, Ref, ref, toRefs, watch, watchEffect } from 'vue'
import type { TresControl } from '@tresjs/core'
import type {
Camera,
Expand Down Expand Up @@ -402,7 +402,7 @@ const touches = computed(() => getTouches(
props.touches,
))
const controlsRef = ref<TresControl & CameraControls | null>(null)
const controlsRef: Ref<TresControl & CameraControls | null> = ref(null)
extend({ CameraControls })
watchEffect(() => {
Expand Down
4 changes: 2 additions & 2 deletions src/core/controls/MapControls.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import { useLoop, useTresContext } from '@tresjs/core'
import { useEventListener } from '@vueuse/core'
import { MapControls } from 'three-stdlib'
import { onUnmounted, ref, toRefs, watch } from 'vue'
import { onUnmounted, Ref, ref, toRefs, watch } from 'vue'
import type { TresVector3 } from '@tresjs/core'
import type { Camera } from 'three'
Expand Down Expand Up @@ -281,7 +281,7 @@ watch(props, () => {
invalidate()
})
const controlsRef = ref<MapControls | null>(null)
const controlsRef: Ref<MapControls | null> = ref(null)
extend({ MapControls })
Expand Down
4 changes: 2 additions & 2 deletions src/core/controls/OrbitControls.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { useLoop, useTresContext } from '@tresjs/core'
import { useEventListener } from '@vueuse/core'
import { TOUCH } from 'three'
import { OrbitControls } from 'three-stdlib'
import { onUnmounted, ref, toRefs, watch } from 'vue'
import { onUnmounted, Ref, ref, toRefs, watch } from 'vue'
import type { TresVector3 } from '@tresjs/core'
import type { Camera } from 'three'
Expand Down Expand Up @@ -282,7 +282,7 @@ const {
const { camera: activeCamera, renderer, extend, controls, invalidate } = useTresContext()
const controlsRef = ref<OrbitControls | null>(null)
const controlsRef: Ref<OrbitControls | null> = ref(null)
extend({ OrbitControls })
Expand Down

0 comments on commit f26d7f2

Please sign in to comment.