mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
Fix Toastr definitions
This commit is contained in:
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