How to correctly type a custom element event bubbling on the imported component? #10761
Unanswered
haleksandre
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I tried a few things but each doesn't seem to type correctly.
I'm guessing that Svelte is defaulting the type of any
on:${string}
as a generic event handler. Is there a way to narrow the type such as when I useon:m-click
on the Button component, it correctly assesses the type as it is in the declare module?Beta Was this translation helpful? Give feedback.
All reactions