DEV Community

Discussion on: How to add Barrels in TypeScript (or JavaScript)

Collapse
 
luispa profile image
Info Comment hidden by post author - thread only visible in this permalink
LuisPa

Hi! What did you mean?

Collapse
 
macsikora profile image
Pragmatic Maciej

Tell me why I should maintain one + file for every directory and what is an issue to import file directly? And who puts one interface per file?

Thread Thread
 
adam_cyclones profile image
Adam Crockett 🌀

Probably more prevalent in declarative styles of codebase? I would see one or more varients in one file. But not just one interface.

Some comments have been hidden by the post's author - find out more