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

Define component improvements #12612

Merged
merged 4 commits into from Jul 5, 2022
Merged

Define component improvements #12612

merged 4 commits into from Jul 5, 2022

Conversation

yyx990803
Copy link
Member

@yyx990803 yyx990803 commented Jul 5, 2022

Previously, defineComponent() types were ported from @vue/composition-api, which has diverged from Vue 3 behavior over time.

This PR re-aligns defineComponent type inference with Vue 3 as much as possible, including mixins and extends support. The main difference being that events declared via emits will not have corresponding onXXX props because there is no such behavior in Vue 2.

closes #12593

@yyx990803 yyx990803 merged commit fb93c1b into main Jul 5, 2022
@yyx990803 yyx990803 deleted the define-component-improvements branch July 5, 2022 02:12
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.

Vue2.7 defineComponent cannot infer the type of mixins
2 participants