Skip to content

Commit

Permalink
fix(types/reactivity): add generics constraint for markNonReactive
Browse files Browse the repository at this point in the history
fix #917
  • Loading branch information
yyx990803 committed Apr 4, 2020
1 parent 7f30cb5 commit f3b6559
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/reactivity/src/reactive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

0 comments on commit f3b6559

Please sign in to comment.