From f3b6559408fb42ff6dc0c67001c9c67093f2b059 Mon Sep 17 00:00:00 2001 From: Evan You Date: Fri, 3 Apr 2020 21:05:55 -0400 Subject: [PATCH] fix(types/reactivity): add generics constraint for markNonReactive fix #917 --- packages/reactivity/src/reactive.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/reactivity/src/reactive.ts b/packages/reactivity/src/reactive.ts index a6f21aadd8e..bc1b72524a8 100644 --- a/packages/reactivity/src/reactive.ts +++ b/packages/reactivity/src/reactive.ts @@ -161,7 +161,7 @@ export function markReadonly(value: T): T { return value } -export function markNonReactive(value: T): T { +export function markNonReactive(value: T): T { nonReactiveValues.add(value) return value }