I've found several articles like this and this, however all of them assumes the library that is going to use is in typings
But CamanJS is not yet in the typings and there is a open ticket for it
my question is, is there a way to add an external js library (which is not yet added to typings) to an ionic2 (typescript) project?
Let me describe this process in a common case:
To use the library you must add the following to one of your
declare var libraryVar: any;
At this point it is ready for use.
After these steps you can use your external library with API which it provides. For example:
this.libraryVar = new libraryVar(parameters);
.ts file compiled into
.js with properly syntax and with your external library.