Skip to content

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

@axelthat

Description

@axelthat

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions