-
-
Notifications
You must be signed in to change notification settings - Fork 8.4k
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
Cannot use interface to declare emits #8457
Labels
Comments
Ugh. After some thoughts, I think the error is correct, see the example: interface Emits {
foo: []
}
interface Emits {
bar: 1 // !!!!
} |
yyx990803
pushed a commit
that referenced
this issue
Nov 15, 2024
noootwo
pushed a commit
to noootwo/core
that referenced
this issue
Nov 15, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Vue version
3.3.4
Link to minimal reproduction
vuejs/language-tools#3223
Steps to reproduce
See the example
What is expected?
No type errors
What is actually happening?
Type errors
System Info
No response
Any additional comments?
Well that's a typescript limitation: microsoft/TypeScript#42825 but I think we can avoid it.
The text was updated successfully, but these errors were encountered: