diff --git a/packages/core/useCloned/index.ts b/packages/core/useCloned/index.ts index b573216d2ce..fb756f13c23 100644 --- a/packages/core/useCloned/index.ts +++ b/packages/core/useCloned/index.ts @@ -1,6 +1,6 @@ import type { MaybeRefOrGetter } from '@vueuse/shared' import { toValue } from '@vueuse/shared' -import type { ComputedRef, WatchOptions } from 'vue-demi' +import type { Ref, WatchOptions } from 'vue-demi' import { isRef, ref, watch } from 'vue-demi' export interface UseClonedOptions extends WatchOptions { @@ -23,7 +23,7 @@ export interface UseClonedReturn { /** * Cloned ref */ - cloned: ComputedRef + cloned: Ref /** * Sync cloned data with source manually */ @@ -39,8 +39,8 @@ export function cloneFnJSON(source: T): T { export function useCloned( source: MaybeRefOrGetter, options: UseClonedOptions = {}, -) { - const cloned = ref({} as T) +): UseClonedReturn { + const cloned = ref({} as T) as Ref const { manual, clone = cloneFnJSON,