いくつかのjsコードをtypescriptに移行しようとしています。 特に、AlertifyJsに問題があります。今、Alertifyは多くのもののようです。ファビアン-dだけtypescriptsからalert alertjを呼び出す
- discontinued project
- ドットorgの
- は、今私は(1)のためのd.tsを見つけることができますドットコム
alertifyjs MohammadYounesによってピックアップalertifyjsピックアップし続けましたDefinitelyTypedでは、他のものはありません。 (3)を使いたいです!
私は何とか折り返したい、または直接電話したいと思います。alertify.confirm( "あなた"、 "女の子"); tsから。
どうすればこの問題を解決できますか?
おかげ
PS:vs2015
EDITでコーディング:私は(私は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**
}
}
}
それは美しく働いた、ありがとうございました。 明確で簡潔で簡単な答えです。私は今、ビールを買ってみたい! – terle