I'm using a company-wide internally hosted js-library. I referenced the script in the index.html file. To get it working I used the "declare" keyword in my root component to initialize some stuff when the app loads:
declare const someInternalLibrary: any;
You may utilize
typings definition in your application to declare your internal library.
If you are using
angular-cli there is a typings.d.ts file there you may add all custom declarations. even you may define all your functions from the internal library which will then give you
To read more how to write Declaration file you may look here (Writing Declaration Files)
Hope this helps!!