Skip to content

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