diff --git a/src/reactivity/ref.ts b/src/reactivity/ref.ts index fdcd636e..ccef2a8b 100644 --- a/src/reactivity/ref.ts +++ b/src/reactivity/ref.ts @@ -1,4 +1,3 @@ -import { Data } from '../component' import { RefKey } from '../utils/symbols' import { proxy, isPlainObject, warn } from '../utils' import { reactive, isReactive, shallowReactive } from './reactive' @@ -119,7 +118,7 @@ export function unref(ref: T): T extends Ref ? V : T { return isRef(ref) ? (ref.value as any) : ref } -export function toRefs(obj: T): ToRefs { +export function toRefs(obj: T): ToRefs { if (__DEV__ && !isReactive(obj)) { warn(`toRefs() expects a reactive object but received a plain one.`) }