We found out recently that createEventDispatcher has a generic interface that can be used to define all the events being dispatched in the component, including their payloads. This seems a little bit cleaner and more visible than defining the $$Events interface that svelte provides. It'd be nice to define all the events for all the components.
We found out recently that
createEventDispatcher
has a generic interface that can be used to define all the events being dispatched in the component, including their payloads. This seems a little bit cleaner and more visible than defining the$$Events
interface that svelte provides. It'd be nice to define all the events for all the components.