File tree 1 file changed +11
-7
lines changed
1 file changed +11
-7
lines changed Original file line number Diff line number Diff line change @@ -16,17 +16,21 @@ export declare const enum RefTypes {
16
16
WritableComputedRef = 3
17
17
}
18
18
19
- type RefValue < T > = T extends null | undefined
20
- ? T
21
- : T & { [ RefType ] ?: RefTypes . Ref }
19
+ type RefValue < T > = T extends null | undefined ? T : ReactiveVariable < T >
22
20
23
- type ComputedRefValue < T > = T extends null | undefined
24
- ? T
25
- : T & { [ RefType ] ?: RefTypes . ComputedRef }
21
+ type ReactiveVariable < T > = T & { [ RefType ] ?: RefTypes . Ref }
22
+
23
+ type ComputedRefValue < T > = T extends null | undefined ? T : ComputedVariable < T >
24
+
25
+ type ComputedVariable < T > = T & { [ RefType ] ?: RefTypes . ComputedRef }
26
26
27
27
type WritableComputedRefValue < T > = T extends null | undefined
28
28
? T
29
- : T & { [ RefType ] ?: RefTypes . WritableComputedRef }
29
+ : WritableComputedVariable < T >
30
+
31
+ type WritableComputedVariable < T > = T & {
32
+ [ RefType ] ?: RefTypes . WritableComputedRef
33
+ }
30
34
31
35
type NormalObject < T extends object > = T & { [ RefType ] ?: never }
32
36
You can’t perform that action at this time.
0 commit comments