Skip to content

Commit 363d6e9

Browse files
unshameOleg Shibaev
authored and
Oleg Shibaev
committed
types(reactivity): rename ComputedGetterWithVModel to ComputedGetterWithInstance
1 parent ecf051b commit 363d6e9

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

packages/reactivity/src/computed.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,16 @@ export interface WritableComputedRef<T> extends Ref<T> {
1616
}
1717

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

2222
export interface WritableComputedOptions<T> {
2323
get: ComputedGetter<T>
2424
set: ComputedSetter<T>
2525
}
2626

27-
export interface WritableComputedOptionsWithVModel<T> {
28-
get: ComputedGetterWithVModel<T>
27+
export interface WritableComputedOptionsWithInstance<T> {
28+
get: ComputedGetterWithInstance<T>
2929
set: ComputedSetter<T>
3030
}
3131

packages/reactivity/src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@ export {
3838
ComputedRef,
3939
WritableComputedRef,
4040
WritableComputedOptions,
41-
WritableComputedOptionsWithVModel,
41+
WritableComputedOptionsWithInstance,
4242
ComputedGetter,
43-
ComputedGetterWithVModel,
43+
ComputedGetterWithInstance,
4444
ComputedSetter
4545
} from './computed'
4646
export { deferredComputed } from './deferredComputed'

packages/runtime-core/src/componentOptions.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ import {
4646
} from './apiLifecycle'
4747
import {
4848
reactive,
49-
ComputedGetterWithVModel,
50-
WritableComputedOptionsWithVModel
49+
ComputedGetterWithInstance,
50+
WritableComputedOptionsWithInstance
5151
} from '@vue/reactivity'
5252
import {
5353
ComponentObjectPropsOptions,
@@ -360,7 +360,7 @@ export type ComponentOptionsMixin = ComponentOptionsBase<
360360

361361
export type ComputedOptions = Record<
362362
string,
363-
ComputedGetterWithVModel<any> | WritableComputedOptionsWithVModel<any>
363+
ComputedGetterWithInstance<any> | WritableComputedOptionsWithInstance<any>
364364
>
365365

366366
export interface MethodOptions {

0 commit comments

Comments
 (0)