mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-10-24 11:50:59 +08:00
Fix Toastr definitions
This commit is contained in:
1 parent
02b302faa7
commit
b1aa03cad8
2 files changed
+6
-5
No files matched your search
Vendored
+5
-3
@@ -4,6 +4,8 @@
|
||||
// Definitions: https://github.com/borisyankov/DefinitelyTyped
|
||||
|
||||
|
||||
/// <reference path="jquery-1.8.d.ts" />
|
||||
|
||||
interface ToastrOptions {
|
||||
tapToDismiss?: bool;
|
||||
toastClass?: string;
|
||||
@@ -28,9 +30,9 @@ interface ToastrOptions {
|
||||
}
|
||||
|
||||
interface ToastrDisplayMethod {
|
||||
(message: string): void;
|
||||
(message: string, title: string): void;
|
||||
(message: string, title: string, overrides: ToastrOptions): void;
|
||||
(message: string): JQuery;
|
||||
(message: string, title: string): JQuery;
|
||||
(message: string, title: string, overrides: ToastrOptions): JQuery;
|
||||
}
|
||||
|
||||
interface Toastr {
|
||||
|
||||
@@ -12,8 +12,7 @@ function test_basic() {
|
||||
var overrides = { timeOut: 250 };
|
||||
toastr.warning(msg, title, overrides);
|
||||
|
||||
toastr.options.onclick = function () {
|
||||
}
|
||||
toastr.options.onclick = function () { }
|
||||
}
|
||||
|
||||
declare var $;
|
||||
|
||||
Reference in new issue
Block a user