I have a file with defined interfaces I’d like to share with my app’s global namespace. My first attempt to do this was that I imported the
interfaces.ts file into my
app.module.ts and placed the interface into the
exports array, but types/interfaces cannot be used in this way, so I thought of a few questions related to this small issue.
app.module.ts need to be involved for exporting to the global namespaces?
app.module.ts is required to do this, how do I import an interface in a way that my
app.module.ts shares it with the rest of my app, so that I wont have to constantly
import it in my components?
Source: Angular Questions