From b1aa03cad87f0353a590326a05edbe4726ec38c5 Mon Sep 17 00:00:00 2001 From: Boris Yankov Date: Fri, 9 Nov 2012 19:58:27 +0200 Subject: [PATCH] Fix Toastr definitions --- Definitions/toastr-1.0.d.ts | 8 +++++--- Tests/toastr-tests.ts | 3 +-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/Definitions/toastr-1.0.d.ts b/Definitions/toastr-1.0.d.ts index f442e63e3..dc4779011 100644 --- a/Definitions/toastr-1.0.d.ts +++ b/Definitions/toastr-1.0.d.ts @@ -4,6 +4,8 @@ // Definitions: https://github.com/borisyankov/DefinitelyTyped +/// + 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 { diff --git a/Tests/toastr-tests.ts b/Tests/toastr-tests.ts index 8b49e29ad..14549bfcc 100644 --- a/Tests/toastr-tests.ts +++ b/Tests/toastr-tests.ts @@ -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 $;