sveltejs / prettier-plugin-svelte

Format your svelte components using prettier.
MIT License
715 stars 95 forks source link

dynamically calculate the combinations for the `SortOrder` type #389

Open DetachHead opened 11 months ago

DetachHead commented 11 months ago

if more import values are ever introduced in the future this will make it much easier to add them to the type.

this may be overkill but it was fun to write lol

dummdidumm commented 11 months ago

This looks like a fun TS riddle you solved there 😄 if options ever get out of hand, we might do something like that, but for now let's keep things simple.