Skip to content

Define component improvements#12612

Merged
yyx990803 merged 4 commits intomainfrom
define-component-improvements
Jul 5, 2022
Merged

Define component improvements#12612
yyx990803 merged 4 commits intomainfrom
define-component-improvements

Conversation

@yyx990803
Copy link
Copy Markdown
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