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

fix(types): allow any object in toRefs #668

Merged
merged 1 commit into from Mar 29, 2021
Merged

fix(types): allow any object in toRefs #668

merged 1 commit into from Mar 29, 2021

Conversation

posva
Copy link
Member

@posva posva commented Mar 25, 2021

I found that toRefs() was unable to infer types from pinia (vuejs/pinia#406) but it works on Vue 3 so I adapted the type to the one existing in Vue 3: https://github.com/vuejs/vue-next/blob/master/packages/reactivity/src/ref.ts#L149 and it fixes the issue on pinia

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants