I have several interfaces that I use throughout the CommonJS typescript project. I would like to create a global file called "interfaces.ts" ... Instead of importing an interface or adding a link to each .ts (template) file, is there a way to declare it globally, possibly in a tsconfig.json file?
I know that there is a global lib.d.ts definition file, which is basically globally declared interfaces. I understand that I can possibly change this file, but I was looking for a better way (abstraction).
Edit: I should notice that I'm currently using Visual Studio code.
source share