fix(types/reactivity): add generics constraint for markNonReactive
fix #917
This commit is contained in:
parent
7f30cb5772
commit
f3b6559408
@ -161,7 +161,7 @@ export function markReadonly<T>(value: T): T {
|
||||
return value
|
||||
}
|
||||
|
||||
export function markNonReactive<T>(value: T): T {
|
||||
export function markNonReactive<T extends object>(value: T): T {
|
||||
nonReactiveValues.add(value)
|
||||
return value
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user