fintory / boot-next

Basic Next.js starter kit including the use of TypeScript, styled-components, mobx-state-tree and many more.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How can we emit same name exports?

visualcookie opened this issue · comments

Motivation

Currently in our projects we have a lot of issues where we name the parent element of a component Wrapper and export it as export const Wrapper. When trying to import the component with an auto-importer, you have to search for the correct import in some IDEs (VSCode).

Question

How can we emit same name exports? My idea would be to name styles or types like StyledButton for a button and the type for it ButtonType.