We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
defineEmits<{}>()
Declaring empty emits like defineEmits<{}>() would fail the type-checking process.
https://stackblitz.com/edit/vitejs-vite-ibxwhy?file=src/components/HelloWorld.vue
Steps Run yarn type-check.
yarn type-check
vue@2.7.14, vue-tsc@1.0.24 (Also tested on vue@3, no errors but still get wrong types in template, where the msg is inferred as of type never.)
msg
never
The text was updated successfully, but these errors were encountered:
genConstructorOverloads
fix: genConstructorOverloads when nums is 0 (#2371)
6ec8e1e
Fixes #2370
Successfully merging a pull request may close this issue.
Problem
Declaring empty emits like
defineEmits<{}>()
would fail the type-checking process.Reproduction
https://stackblitz.com/edit/vitejs-vite-ibxwhy?file=src/components/HelloWorld.vue
Steps
Run
yarn type-check
.Environment
vue@2.7.14, vue-tsc@1.0.24
(Also tested on vue@3, no errors but still get wrong types in template, where the
msg
is inferred as of typenever
.)The text was updated successfully, but these errors were encountered: