From: 三咲智子 Date: Mon, 6 Dec 2021 04:18:21 +0000 (+0800) Subject: fix(types/reactivity): export ShallowRef type (#5026) X-Git-Tag: v3.2.24~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=523b4b78f5d2e11f1822e09c324a854c790a7863;p=thirdparty%2Fvuejs%2Fcore.git fix(types/reactivity): export ShallowRef type (#5026) close #5205 --- diff --git a/packages/reactivity/src/index.ts b/packages/reactivity/src/index.ts index d608e8b8f3..c61999bd6f 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 93eb4fa89b..3e00541c74 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