fix(types/reactivity): add generics constraint for markNonReactive

fix #917
This commit is contained in:
Evan You 2020-04-03 21:05:55 -04:00
parent 7f30cb5772
commit f3b6559408

View File

@ -161,7 +161,7 @@ export function markReadonly<T>(value: T): T {
return value return value
} }
export function markNonReactive<T>(value: T): T { export function markNonReactive<T extends object>(value: T): T {
nonReactiveValues.add(value) nonReactiveValues.add(value)
return value return value
} }