I'm trying to migrate some js code to typescript. Specifically I'm having trouble with AlertifyJs. Now Alertify seems to be many things.
- a discontinued project by fabien-d
- picked up and continued alertifyjs dot org
- picked up by MohammadYounes alertifyjs dot com
Now I can find the d.ts for (1) on DefinitelyTyped, but none for the others. I want to use (3)!
I would like to somehow wrap or call directly alertify.confirm("you go", "girl"); from ts.
How can I achieve this?
Thanks
PS: Coding in vs2015
EDIT: Thought I'd provide you beutiful nerds with a code snippet of what I got somefar
///<reference path="../typings/jquery/jquery.d.ts"/>
///<reference path="../typings/toastr/toastr.d.ts"/>
module mymodule.Web {
export class CommonTools {
constructor() {
toastr.options.closeButton = false;
}
showInfo(title: string, message: string) {
toastr.info(message, title);
}
showConfirm(title: string, message: string) {
//**code goes here**
}
}
}