From 3206e5dfe58fd0e93644d13929558d71c5171888 Mon Sep 17 00:00:00 2001 From: Evan You Date: Tue, 25 Feb 2020 20:43:01 -0500 Subject: [PATCH] fix(types): shallowRef should not unwrap value type --- packages/reactivity/src/ref.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/reactivity/src/ref.ts b/packages/reactivity/src/ref.ts index dde3b82b..48b3787f 100644 --- a/packages/reactivity/src/ref.ts +++ b/packages/reactivity/src/ref.ts @@ -34,7 +34,7 @@ export function ref(value?: unknown) { return createRef(value) } -export function shallowRef(value: T): T extends Ref ? T : Ref> +export function shallowRef(value: T): T extends Ref ? T : Ref export function shallowRef(): Ref export function shallowRef(value?: unknown) { return createRef(value, true)