Simple use jQuery with TypeScript (ok)
https://stackoverflow.com/questions/32050645/how-to-use-jquery-with-typescript

npm install --save-dev @types/jqueryclass Person {
constructor(name: string) {
this.name = name;
}
name: string;
}
function greeter(person: Person) {
return "Hello " + person.name;
}
var person = new Person("Lionel");
$(document).ready(function() {
var message = greeter(person);
$("#status")[0].innerHTML = message;
});Last updated