}
// only unwrap nested ref
-type UnwrapNestedRefs<T> = T extends Ref ? T : UnwrapRef<T>
+export type UnwrapNestedRefs<T> = T extends Ref ? T : UnwrapRef<T>
/**
* Creates a reactive copy of the original object.
// here in data() - somehow that would mess up the inference
expectType<number | undefined>(this.a)
return {
- c: this.a || 123
+ c: this.a || 123,
+ someRef: ref(0)
}
},
computed: {
expectType<number>(this.d)
// computed get/set
expectType<number>(this.e)
+ expectType<number>(this.someRef)
},
methods: {
doSomething() {