Hi, I searched about this issue a lot before opening a new thread but I still haven’t fixed my code.
I’m trying to include my javascript file myLibrary.js into my project and i’ve done it by adding the script tag into index.html and declaring var ext:any into the .ts file where i’m supposed to use my functions but when i call ext.myFunction() I get this:
ReferenceError: ext is not defined
The only way i can make it works it’s by removing the line “declare var ext:any” and calling myFunction() just like that but obviously the editor notices he can’t find the function( even though the code run perfectly)
What am i doing wrong?
Thanks for your time