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

chore: expose ExtractPropTypes #983

Merged
merged 1 commit into from
Apr 17, 2020

Conversation

cexbrayat
Copy link
Member

In an attempt to add some typesafety to @vue/test-utils I ended up with a PR that can check that mount(defineComponent({ props: { a: string } }), { props: { a: 2 } }) does not compile.

To achieve the same without defineComponent, it looks like we'll need ExtractPropTypes to be public. See vuejs/test-utils#74 for more context.

Would it be possible?

@yyx990803 yyx990803 merged commit 4cf5e07 into vuejs:master Apr 17, 2020
pikax pushed a commit to pikax/vue-next that referenced this pull request Apr 29, 2020
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.

2 participants