diff --git a/packages/reactivity/src/ref.ts b/packages/reactivity/src/ref.ts index d22e6a0e..285a9937 100644 --- a/packages/reactivity/src/ref.ts +++ b/packages/reactivity/src/ref.ts @@ -2,7 +2,6 @@ import { track, trigger } from './effect' import { TrackOpTypes, TriggerOpTypes } from './operations' import { isObject, hasChanged } from '@vue/shared' import { reactive, isProxy, toRaw } from './reactive' -import { ComputedRef } from './computed' import { CollectionTypes } from './collectionHandlers' declare const RefSymbol: unique symbol @@ -157,9 +156,9 @@ type BaseTypes = string | number | boolean */ export interface RefUnwrapBailTypes {} -export type UnwrapRef = T extends ComputedRef +export type UnwrapRef = T extends Ref ? UnwrapRefSimple - : T extends Ref ? UnwrapRefSimple : UnwrapRefSimple + : UnwrapRefSimple type UnwrapRefSimple = T extends | Function