Skip to content

Commit 523b4b7

Browse files
authored
fix(types/reactivity): export ShallowRef type (#5026)
close #5205
1 parent 095fe26 commit 523b4b7

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

packages/reactivity/src/index.ts

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ export {
1212
ToRef,
1313
ToRefs,
1414
UnwrapRef,
15+
ShallowRef,
1516
ShallowUnwrapRef,
1617
RefUnwrapBailTypes
1718
} from './ref'

packages/reactivity/src/ref.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ export function ref(value?: unknown) {
7777

7878
declare const ShallowRefMarker: unique symbol
7979

80-
type ShallowRef<T = any> = Ref<T> & { [ShallowRefMarker]?: true }
80+
export type ShallowRef<T = any> = Ref<T> & { [ShallowRefMarker]?: true }
8181

8282
export function shallowRef<T extends object>(
8383
value: T

0 commit comments

Comments
 (0)