Skip to content

Commit f3b6559

Browse files
committed
fix(types/reactivity): add generics constraint for markNonReactive
fix #917
1 parent 7f30cb5 commit f3b6559

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/reactivity/src/reactive.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ export function markReadonly<T>(value: T): T {
161161
return value
162162
}
163163

164-
export function markNonReactive<T>(value: T): T {
164+
export function markNonReactive<T extends object>(value: T): T {
165165
nonReactiveValues.add(value)
166166
return value
167167
}

0 commit comments

Comments
 (0)