tatethurston / nextjs-routes

Type safe routing for Next.js
MIT License
571 stars 23 forks source link

Export Locales as a type #81

Closed Asamsig closed 2 years ago

Asamsig commented 2 years ago

Extracted types to an exported type declaration

Asamsig commented 2 years ago

I actually suspected the Locales => Locale was coming, I realized after the fact, that it should probably have been in singular form.

I dropped the conditional export, the conditional import, and now always use it as the type for locale.

Happy to contribute to this really great library!