Skip to content

Commit 3206e5d

Browse files
committed
fix(types): shallowRef should not unwrap value type
1 parent 9aaeeed commit 3206e5d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/reactivity/src/ref.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export function ref(value?: unknown) {
3434
return createRef(value)
3535
}
3636

37-
export function shallowRef<T>(value: T): T extends Ref ? T : Ref<UnwrapRef<T>>
37+
export function shallowRef<T>(value: T): T extends Ref ? T : Ref<T>
3838
export function shallowRef<T = any>(): Ref<T>
3939
export function shallowRef(value?: unknown) {
4040
return createRef(value, true)

0 commit comments

Comments
 (0)