I have a SPA with Angular CLI framework and a Javascript library written by a team member. I need to inject this JS file into the app. My thought is
You have a couple of options here:
In the src
dir for newly created applications there is a file typings.d.ts
which you can use reference your team member's .d.ts
file which will expose those types throughout your application.
In the tsconfig.json
file you can add the path to the node_modules
folder where this package lives to the typeRoots
array which will make those typing available too.