From f5d3fc083c4588177603f82529f4a78377695f82 Mon Sep 17 00:00:00 2001 From: Vladimir Date: Sun, 13 Jan 2013 15:03:43 +0400 Subject: [PATCH 1/6] removed UTF-8 BOM to fix compilation error --- knockout/knockout-2.2.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/knockout/knockout-2.2.d.ts b/knockout/knockout-2.2.d.ts index fc3137a7d..981752b8a 100644 --- a/knockout/knockout-2.2.d.ts +++ b/knockout/knockout-2.2.d.ts @@ -1,4 +1,4 @@ -// Type definitions for Knockout 2.2 +// Type definitions for Knockout 2.2 // Project: http://knockoutjs.com // Definitions by: Boris Yankov // Definitions: https://github.com/borisyankov/DefinitelyTyped From 034c6c9a0eb1f014fb5289fa50fd10a90b43368b Mon Sep 17 00:00:00 2001 From: James Curran Date: Sun, 13 Jan 2013 21:55:04 -0500 Subject: [PATCH 2/6] Added definition file for jQuery.jNotify --- jquery.jnotify/jquery.jnotify.d.ts | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 jquery.jnotify/jquery.jnotify.d.ts diff --git a/jquery.jnotify/jquery.jnotify.d.ts b/jquery.jnotify/jquery.jnotify.d.ts new file mode 100644 index 000000000..c47195588 --- /dev/null +++ b/jquery.jnotify/jquery.jnotify.d.ts @@ -0,0 +1,29 @@ +// Typescript type definitions for jQuery.jNotify v1 by Fabio Franzini +// Project: http://jnotify.codeplex.com +// Definitions by: James Curran +// Definitions: https://github.com/borisyankov/DefinitelyTyped + +// To Use add line /// + + +export interface JNotifyInitOptions + { + oneAtTime:bool; + appendType:string; + } + +export interface JNotifyOptions + { + text?:string; + type?: string; + showIcon? : bool; + permanent?: bool; + disappearTime?: number; + } + +interface JQuery + { + jnotifyInizialize(options?: JNotifyInitOptions ) ; + jnotifyAddMessage(options?: JNotifyOptions ) ; + } + From 047b242d2f91626617bf12f293572355b2564fd0 Mon Sep 17 00:00:00 2001 From: Greg Weber Date: Sun, 13 Jan 2013 20:06:47 -0800 Subject: [PATCH 3/6] add responseInterceptors --- angularjs/angular-1.0.d.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/angularjs/angular-1.0.d.ts b/angularjs/angular-1.0.d.ts index 7dbbcef65..3753e88c2 100644 --- a/angularjs/angular-1.0.d.ts +++ b/angularjs/angular-1.0.d.ts @@ -509,6 +509,7 @@ module ng { interface IHttpProvider extends IServiceProvider { defaults: IRequestConfig; + responseInterceptors: any[]; } /////////////////////////////////////////////////////////////////////////// From 4ac366344957bb4a545b3f82abba6889ec4e1621 Mon Sep 17 00:00:00 2001 From: Natan Vivo Date: Mon, 14 Jan 2013 14:57:43 -0200 Subject: [PATCH 4/6] Proxy should accept additional arguments. http://api.jquery.com/jQuery.proxy/ --- jquery/jquery-1.8.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jquery/jquery-1.8.d.ts b/jquery/jquery-1.8.d.ts index 260d18b70..3328c2082 100644 --- a/jquery/jquery-1.8.d.ts +++ b/jquery/jquery-1.8.d.ts @@ -246,7 +246,7 @@ interface JQueryStatic { /****** EVENTS *******/ - proxy(context: any, name: any): any; + proxy(context: any, name: any, ...args: any[]): any; Deferred(): JQueryDeferred; Event(name:string, eventProperties?:any): JQueryEventObject; From 92035d7ae1633c5f0fc30d839496ed83dac04d08 Mon Sep 17 00:00:00 2001 From: Natan Vivo Date: Mon, 14 Jan 2013 15:00:01 -0200 Subject: [PATCH 5/6] ko.computed should accept an options argument. http://knockoutjs.com/documentation/computedObservables.html#computed_observable_reference --- knockout/knockout-2.2.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/knockout/knockout-2.2.d.ts b/knockout/knockout-2.2.d.ts index 981752b8a..330a63037 100644 --- a/knockout/knockout-2.2.d.ts +++ b/knockout/knockout-2.2.d.ts @@ -62,7 +62,7 @@ interface KnockoutComputedStatic { fn: KnockoutComputedFunctions; (): KnockoutComputed; - (func: Function, context?: any): KnockoutComputed; + (func: Function, context?: any, options?: any): KnockoutComputed; (def: KnockoutComputedDefine): KnockoutComputed; (options?: any): KnockoutComputed; } From f200f22321fc6af909010bdf3ad1fd8398064fd5 Mon Sep 17 00:00:00 2001 From: Boris Yankov Date: Mon, 14 Jan 2013 19:28:23 +0200 Subject: [PATCH 6/6] Update jQuery.jNotify, add tests --- README.md | 1 + jquery.jnotify/jquery.jnotify-1.0.d.ts | 25 +++++++++++++ jquery.jnotify/jquery.jnotify-tests.ts | 50 ++++++++++++++++++++++++++ jquery.jnotify/jquery.jnotify.d.ts | 29 --------------- 4 files changed, 76 insertions(+), 29 deletions(-) create mode 100644 jquery.jnotify/jquery.jnotify-1.0.d.ts create mode 100644 jquery.jnotify/jquery.jnotify-tests.ts delete mode 100644 jquery.jnotify/jquery.jnotify.d.ts diff --git a/README.md b/README.md index d7beb91ea..8e17ccba8 100644 --- a/README.md +++ b/README.md @@ -40,6 +40,7 @@ Complete * [jQuery.BBQ](http://benalman.com/projects/jquery-bbq-plugin/) (by [Adam R. Smith](https://github.com/sunetos)) * [jQuery.Cookie](https://github.com/carhartl/jquery-cookie) (by [Roy Goode](https://github.com/RoyGoode)) * [jQuery.Globalize](https://github.com/jquery/globalize) (by [Boris Yankov](https://github.com/borisyankov)) +* [jQuery.jNotify]( http://jnotify.codeplex.com) (by [James Curran](https://github.com/jamescurran/)) * [jQuery.Timepicker](http://fgelinas.com/code/timepicker/) (by [Anwar Javed](https://github.com/anwarjaved)) * [jQuery.Transit](http://ricostacruz.com/jquery.transit/) (by [MrBigDog2U](https://github.com/MrBigDog2U)) * [jQuery.Validation](http://bassistance.de/jquery-plugins/jquery-plugin-validation/) (by [Boris Yankov](https://github.com/borisyankov)) diff --git a/jquery.jnotify/jquery.jnotify-1.0.d.ts b/jquery.jnotify/jquery.jnotify-1.0.d.ts new file mode 100644 index 000000000..782bca0f4 --- /dev/null +++ b/jquery.jnotify/jquery.jnotify-1.0.d.ts @@ -0,0 +1,25 @@ +// Typescript type definitions for jQuery.jNotify 1.0 by Fabio Franzini +// Project: http://jnotify.codeplex.com +// Definitions by: James Curran +// Definitions: https://github.com/borisyankov/DefinitelyTyped + + +/// + +interface JNotifyInitOptions { + oneAtTime?: bool; + appendType?: string; +} + +interface JNotifyOptions { + text?: string; + type?: string; + showIcon?: bool; + permanent?: bool; + disappearTime?: number; +} + +interface JQuery { + jnotifyInizialize(options?: JNotifyInitOptions); + jnotifyAddMessage(options?: JNotifyOptions); +} \ No newline at end of file diff --git a/jquery.jnotify/jquery.jnotify-tests.ts b/jquery.jnotify/jquery.jnotify-tests.ts new file mode 100644 index 000000000..34c065b01 --- /dev/null +++ b/jquery.jnotify/jquery.jnotify-tests.ts @@ -0,0 +1,50 @@ +/// +/// + +$(document).ready(function () { + $('#StatusBar').jnotifyInizialize({ + oneAtTime: true + }); + $('#Notification') + .jnotifyInizialize({ + oneAtTime: false, + appendType: 'append' + }) + .css({ + 'position': 'absolute', + 'marginTop': '20px', + 'right': '20px', + 'width': '250px', + 'z-index': '9999' + }); + $('#addStatusBarMessage').click(function () { + $('#StatusBar').jnotifyAddMessage({ + text: 'This is a non permanent message.', + permanent: false, + showIcon: false + }); + }); + + $('#addStatusBarError').click(function () { + $('#StatusBar').jnotifyAddMessage({ + text: 'This is a permanent error.', + permanent: true, + type: 'error' + }); + }); + + $('#addNotificationMessage').click(function () { + $('#Notification').jnotifyAddMessage({ + text: 'This is a non permanent message.', + permanent: false + }); + }); + + $('#addNotificationError').click(function () { + $('#Notification').jnotifyAddMessage({ + text: 'This is a permanent error.', + permanent: true, + type: 'error' + }); + }); +}); \ No newline at end of file diff --git a/jquery.jnotify/jquery.jnotify.d.ts b/jquery.jnotify/jquery.jnotify.d.ts deleted file mode 100644 index c47195588..000000000 --- a/jquery.jnotify/jquery.jnotify.d.ts +++ /dev/null @@ -1,29 +0,0 @@ -// Typescript type definitions for jQuery.jNotify v1 by Fabio Franzini -// Project: http://jnotify.codeplex.com -// Definitions by: James Curran -// Definitions: https://github.com/borisyankov/DefinitelyTyped - -// To Use add line /// - - -export interface JNotifyInitOptions - { - oneAtTime:bool; - appendType:string; - } - -export interface JNotifyOptions - { - text?:string; - type?: string; - showIcon? : bool; - permanent?: bool; - disappearTime?: number; - } - -interface JQuery - { - jnotifyInizialize(options?: JNotifyInitOptions ) ; - jnotifyAddMessage(options?: JNotifyOptions ) ; - } -