From 1dab5f7be3dadcebb1c06659e58b78cf4b61f21b Mon Sep 17 00:00:00 2001 From: unknown Date: Thu, 22 Jan 2015 11:05:42 +0100 Subject: [PATCH] added jquery dependency and enhanced interface --- jquery.pnotify/jquery.pnotify-2.x.d.ts | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/jquery.pnotify/jquery.pnotify-2.x.d.ts b/jquery.pnotify/jquery.pnotify-2.x.d.ts index 58dec29f0..167afcf23 100644 --- a/jquery.pnotify/jquery.pnotify-2.x.d.ts +++ b/jquery.pnotify/jquery.pnotify-2.x.d.ts @@ -3,12 +3,15 @@ // Definitions by: Louis Grignon // Definitions: https://github.com/borisyankov/DefinitelyTyped +/// + interface PNotifyStack { dir1?: string; dir2?: string; push?: string; spacing1?: number; spacing2?: number; + context?: JQuery } interface PNotifyLabel { @@ -161,8 +164,10 @@ interface PNotifyOptions { } interface PNotify { - update(options?: PNotifyOptions); - remove(); + elem: JQuery; + + update(options?: PNotifyOptions): void; + remove(): void; } interface PNotifyConstructor {