Skip to content

Commit 2877447

Browse files
committed
fix: improve addNonReactiveProperties type
1 parent daf90bf commit 2877447

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/app-frontend/src/util/reactivity.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export function nonReactive<T> (ref: Ref<T>) {
1414
return holder
1515
}
1616

17-
export function addNonReactiveProperties (target: any, props: any) {
17+
export function addNonReactiveProperties<T = any> (target: T, props: Partial<T>) {
1818
for (const key in props) {
1919
Object.defineProperty(target, key, {
2020
value: props[key],

0 commit comments

Comments
 (0)