diff --git a/packages/reactivity/src/index.ts b/packages/reactivity/src/index.ts index d608e8b8f3f..c61999bd6f3 100644 --- a/packages/reactivity/src/index.ts +++ b/packages/reactivity/src/index.ts @@ -12,6 +12,7 @@ export { ToRef, ToRefs, UnwrapRef, + ShallowRef, ShallowUnwrapRef, RefUnwrapBailTypes } from './ref' diff --git a/packages/reactivity/src/ref.ts b/packages/reactivity/src/ref.ts index 93eb4fa89b0..3e00541c743 100644 --- a/packages/reactivity/src/ref.ts +++ b/packages/reactivity/src/ref.ts @@ -77,7 +77,7 @@ export function ref(value?: unknown) { declare const ShallowRefMarker: unique symbol -type ShallowRef = Ref & { [ShallowRefMarker]?: true } +export type ShallowRef = Ref & { [ShallowRefMarker]?: true } export function shallowRef( value: T