Subscribe on changes!

toRefs and `ref<any>()` gives type `any` instead of `Ref<any>`

avatar
Dec 30th 2021

Version

3.2.26

Steps to reproduce

interface Props {
  error2: any
}

const props = defineProps<Props>()

const { error2 } = toRefs(props)

What is expected?

error2 should be Ref<any>.

What is actually happening?

error2 is any.