I am trying to call a Javascript method from a TypeScript class. I tried this solution, but it did not work for me. I am getting the error
Uncaught Referenceerror : greet is not defined
Here is my code:
//Resources.js
function greet() {return "Hello";}
//Modifiers.ts
declare function greet(): string;
var hi = greet();
Any help appreciated!