-
-
Notifications
You must be signed in to change notification settings - Fork 196
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
createEventDispatcher
definitions are not merged
#921
Comments
dummdidumm
pushed a commit
to dummdidumm/language-tools
that referenced
this issue
Apr 6, 2021
Merge definitions of multiple `createEventDispatcher`-instantations as well as bubbled events. sveltejs#921
dummdidumm
added a commit
that referenced
this issue
Apr 6, 2021
Merge definitions of multiple `createEventDispatcher`-instantations as well as bubbled events. #921
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It appears that only the last
createEventDispatcher
produces the type for the listener, they are not merged.Example:
The typescript compiler catches this as expected.
Changing the order produces different results.
if the
createEventDispatcher
order changes, then the typescript compiler does not catch the error.The typescript compiler does not catch the error since the type is now
CustomEvent<any>
.Originally posted by @linuxuser586 in #424 (comment)
The text was updated successfully, but these errors were encountered: