What's the best way of importing and using JavaScript code within TypeScript?
I'm trying to use stuff like Bootstrap's modal.js within an Angular 2 Component written using TypeScript.
UPDATE:
The solution as suggested was to create a type declaration d.ts file for the js file to forward delcare things I needed to use, then the referenced js file implementation was used at runtime.
Shame there isn't a more automatic direct way but it gets the job done. For many common frameworks these d.ts type declarations are available as mentioned via http://definitelytyped.org/tsd. I also didn't need to comment style reference the d.ts as it was already included in my compiled ts files.