Skip to content

Commit ecf051b

Browse files
unshameOleg Shibaev
authored andcommitted
types(reactivity): fix type inference in computed options
Relax type of ComputedGetterWithVModel
1 parent a9e8642 commit ecf051b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/reactivity/src/computed.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export interface WritableComputedRef<T> extends Ref<T> {
1616
}
1717

1818
export type ComputedGetter<T> = () => T
19-
export type ComputedGetterWithVModel<T> = (vm: any) => T
19+
export type ComputedGetterWithVModel<T> = (...args: any[]) => T
2020
export type ComputedSetter<T> = (v: T) => void
2121

2222
export interface WritableComputedOptions<T> {

0 commit comments

Comments
 (0)