I wondering what people …
I wondering what people’s thoughts are on having a types
module to store interfaces and such across all modules. We are early in our Nx project development, and have some standard module boundaries (i.e. ui
can’t reference data-access
), and are finding it necessary to share interfaces defined in data-access
or a domain
module to something like a ui
module and it seems like a types
module of interfaces would solve that. Or should I be thinking about this differently?
Responses:
Hey Mike, that is what we do. When we have scoped types that are shared between different libraries we create a lib for those types scoped correctly and export them to be used in other places.