We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9d67830 commit 5c1e42fCopy full SHA for 5c1e42f
packages/reactivity/src/computed.ts
@@ -1,16 +1,13 @@
1
import { effect, ReactiveEffect, activeReactiveEffectStack } from './effect'
2
-import { UnwrapNestedRefs } from './ref'
+import { Ref, UnwrapNestedRefs } from './ref'
3
import { isFunction } from '@vue/shared'
4
5
-export interface ComputedRef<T> {
6
- _isRef: true
+export interface ComputedRef<T> extends Ref<T> {
7
readonly value: UnwrapNestedRefs<T>
8
readonly effect: ReactiveEffect
9
}
10
11
-export interface WritableComputedRef<T> {
12
13
- value: UnwrapNestedRefs<T>
+export interface WritableComputedRef<T> extends Ref<T> {
14
15
16
0 commit comments