I would like to use a javascript function inside a typescript file. How can I reference the javascript file containing that function inside typescript file?
I tried
You just have to tell the compiler that the method exists outside typescript:
declare function myJavaScriptFunction(param1: number, param2: JQuery): void;
Be sure that the website loads all files needed, the normal js files and the js files that the typescript compiler generated