Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
axelthat opened this issue Dec 30, 2021 · 0 comments
Closed

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

axelthat opened this issue Dec 30, 2021 · 0 comments
Labels
🐞 bug Something isn't working scope: types

Comments

@axelthat
Copy link

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.

@posva posva changed the title toRefs returns any type for Ref<any> toRefs and ref<any>() gives type any instead of Ref<any> Dec 31, 2021
@posva posva added 🐞 bug Something isn't working scope: types labels Dec 31, 2021
macheteHot added a commit to macheteHot/vue-next that referenced this issue Dec 31, 2021
@github-actions github-actions bot locked and limited conversation to collaborators Oct 5, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
🐞 bug Something isn't working scope: types
Projects
None yet
Development

No branches or pull requests

2 participants