NASA-AMMOS / aerie-ui

The client application for Aerie.
https://nasa-ammos.github.io/aerie-docs/
MIT License
28 stars 5 forks source link

Specify generic types in all `createEventDispatcher`s #1158

Closed duranb closed 4 months ago

duranb commented 5 months ago

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.