From de1c4b158f835d0966c398c84b36c617b98e3fc9 Mon Sep 17 00:00:00 2001 From: Diullei Gomes Date: Sat, 16 Feb 2013 18:19:07 -0200 Subject: [PATCH 1/9] casperjs header was normalized. --- casperjs/casperjs.d.ts | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/casperjs/casperjs.d.ts b/casperjs/casperjs.d.ts index 9bf4485a5f..b1f7550225 100644 --- a/casperjs/casperjs.d.ts +++ b/casperjs/casperjs.d.ts @@ -1,9 +1,7 @@ -/************************************************ -* * -* CasperJS v1.0.0 API * -* http://casperjs.org/api.html * -* * -************************************************/ +// Type definitions for CasperJS v1.0.0 API +// Project: http://casperjs.org/ +// Definitions by: Jed Hunsaker +// Definitions: https://github.com/borisyankov/DefinitelyTyped /// From e4a13a007f6a40c9548bbefd7aae7fef19551492 Mon Sep 17 00:00:00 2001 From: Diullei Gomes Date: Sat, 16 Feb 2013 18:22:53 -0200 Subject: [PATCH 2/9] d3js header was normalized. --- d3/d3.d.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/d3/d3.d.ts b/d3/d3.d.ts index 939ea0df40..1e278ea68b 100644 --- a/d3/d3.d.ts +++ b/d3/d3.d.ts @@ -1,3 +1,8 @@ +// Type definitions for d3JS +// Project: http://d3js.org/ +// Definitions by: TypeScript samples +// Definitions: https://github.com/borisyankov/DefinitelyTyped + interface ID3Selectors { select: { (selector: string): ID3Selection; From 5f9d3965e0d889ed87694b41414f1f5019da1656 Mon Sep 17 00:00:00 2001 From: Diullei Gomes Date: Sat, 16 Feb 2013 18:26:49 -0200 Subject: [PATCH 3/9] jquery.transit header was normalized. --- jquery.transit/jquery.transit.d.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/jquery.transit/jquery.transit.d.ts b/jquery.transit/jquery.transit.d.ts index 3507233e09..2153164aab 100644 --- a/jquery.transit/jquery.transit.d.ts +++ b/jquery.transit/jquery.transit.d.ts @@ -1,4 +1,7 @@ -// Type definitions for jQuery.transit.js +// Type definitions for jQuery.transit.js 0.9.9 +// Project: http://ricostacruz.com/jquery.transit/ +// Definitions by: MrBigDog2U +// Definitions: https://github.com/borisyankov/DefinitelyTyped /// From c4fdf42c6a5a9fa3a6e24e81b67abf265533589f Mon Sep 17 00:00:00 2001 From: Diullei Gomes Date: Sat, 16 Feb 2013 18:29:10 -0200 Subject: [PATCH 4/9] knockout.validation header was normalized. --- knockout.validation/knockout.validation.d.ts | 49 +++++++++++--------- 1 file changed, 27 insertions(+), 22 deletions(-) diff --git a/knockout.validation/knockout.validation.d.ts b/knockout.validation/knockout.validation.d.ts index b54fa36902..c0346ed104 100644 --- a/knockout.validation/knockout.validation.d.ts +++ b/knockout.validation/knockout.validation.d.ts @@ -1,11 +1,16 @@ +// Type definitions for Knockout Validation +// Project: https://github.com/ericmbarnard/Knockout-Validation +// Definitions by: Dan Ludwig +// Definitions: https://github.com/borisyankov/DefinitelyTyped + /// -interface KnockoutValidationGroupingOptions { +interface KnockoutValidationGroupingOptions { deep?: bool; observable?: bool; } -interface KnockoutValidationConfiguration { +interface KnockoutValidationConfiguration { registerExtenders?: bool; messagesOnModified?: bool; messageTemplate?: string; @@ -19,7 +24,7 @@ interface KnockoutValidationConfiguration { grouping?: KnockoutValidationGroupingOptions; } -interface KnockoutValidationUtils { +interface KnockoutValidationUtils { isArray(o: any): bool; isObject(o: any): bool; values(o: any): any[]; @@ -35,31 +40,31 @@ interface KnockoutValidationUtils { isEmptyVal(val: any): bool; } -interface KnockoutValidationAsyncCallbackArgs { +interface KnockoutValidationAsyncCallbackArgs { isValid: bool; message: string; } -interface KnockoutValidationAsyncCallback { +interface KnockoutValidationAsyncCallback { (result: bool): void; (result: KnockoutValidationAsyncCallbackArgs): void; } -interface KnockoutValidationRuleDefinition { +interface KnockoutValidationRuleDefinition { message: string; validator(value: any, params: any): bool; } -interface KnockoutValidationAsyncRuleDefinition extends KnockoutValidationRuleDefinition { +interface KnockoutValidationAsyncRuleDefinition extends KnockoutValidationRuleDefinition { async: bool; validator(value: any, params: any, callback: KnockoutValidationAsyncCallback): void; } -interface KnockoutValidationAnonymousRuleDefinition { +interface KnockoutValidationAnonymousRuleDefinition { validation: KnockoutValidationRuleDefinition; } -interface KnockoutValidationRuleDefinitions { +interface KnockoutValidationRuleDefinitions { date: KnockoutValidationRuleDefinition; dateISO: KnockoutValidationRuleDefinition; digit: KnockoutValidationRuleDefinition; @@ -78,30 +83,30 @@ interface KnockoutValidationRuleDefinitions { unique: KnockoutValidationRuleDefinition; } -interface KnockoutValidationRule { +interface KnockoutValidationRule { rule: string; params: any; message?: string; condition?: () => bool; } -interface KnockoutValidationErrors { +interface KnockoutValidationErrors { (): string[]; showAllMessages(): void; showAllMessages(show: bool): void; } -interface KnockoutValidationGroup { - errors?: KnockoutValidationErrors; - isValid?: () => bool; - isAnyMessageShown?: () => bool; +interface KnockoutValidationGroup { + errors?: KnockoutValidationErrors; + isValid?: () => bool; + isAnyMessageShown?: () => bool; } -interface KnockoutValidationStatic { - init(options?: KnockoutValidationConfiguration, force?: bool): void; - configure(options: KnockoutValidationConfiguration): void; - reset(): void; - +interface KnockoutValidationStatic { + init(options?: KnockoutValidationConfiguration, force?: bool): void; + configure(options: KnockoutValidationConfiguration): void; + reset(): void; + group(obj: any, options?: any): () => string[]; formatMessage(message: string, params: string): string; @@ -132,8 +137,8 @@ interface KnockoutStatic { applyBindingsWithValidation(viewModel: any, rootNode?: any, options?: KnockoutValidationConfiguration): void; } -interface KnockoutSubscribableFunctions { - isValid: KnockoutComputed; +interface KnockoutSubscribableFunctions { + isValid: KnockoutComputed; isValidating: KnockoutObservableBool; rules: KnockoutObservableArray; } From 07807fedb840f4fb47dcb5cfc62478683bb72024 Mon Sep 17 00:00:00 2001 From: Diullei Gomes Date: Sat, 16 Feb 2013 18:31:46 -0200 Subject: [PATCH 5/9] knockout.viewmodel header was normalized. --- knockout.viewmodel/knockout.viewmodel.d.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/knockout.viewmodel/knockout.viewmodel.d.ts b/knockout.viewmodel/knockout.viewmodel.d.ts index 206927fd56..39b98d2fa6 100644 --- a/knockout.viewmodel/knockout.viewmodel.d.ts +++ b/knockout.viewmodel/knockout.viewmodel.d.ts @@ -1,7 +1,9 @@ -/// +// Type definitions for Knockout Viewmodel 1.1.3 +// Project: http://coderenaissance.github.com/knockout.viewmodel/ +// Definitions by: Oisin Grehan +// Definitions: https://github.com/borisyankov/DefinitelyTyped -// build: knockout.viewmodel 1.1.3 -// http://coderenaissance.github.com/knockout.viewmodel/ +/// interface KnockoutViewModelStatic { toModel(viewmodel: any): any; From b77d9e3060a6733391147524160e2f53c45409d3 Mon Sep 17 00:00:00 2001 From: Diullei Gomes Date: Sat, 16 Feb 2013 18:33:00 -0200 Subject: [PATCH 6/9] adjusted Knockout.Viewmodel link --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 6ed05f3bc5..fddf3adf36 100644 --- a/README.md +++ b/README.md @@ -92,7 +92,7 @@ List of Definitions * [Knockout.Mapping](https://github.com/SteveSanderson/knockout.mapping) (by [Boris Yankov](https://github.com/borisyankov)) * [Knockout.Postbox](https://github.com/rniemeyer/knockout-postbox) (by [Judah Gabriel](https://github.com/JudahGabriel)) * [Knockout.Validation](https://github.com/ericmbarnard/Knockout-Validation) (by [Dan Ludwig](https://github.com/danludwig)) -* [Knockout.Viewmodel](http://romanych.github.com/ko.editables/) (by [Oisin Grehan](https://github.com/oising)) +* [Knockout.Viewmodel](http://coderenaissance.github.com/knockout.viewmodel/) (by [Oisin Grehan](https://github.com/oising)) * [ko.editables](http://romanych.github.com/ko.editables/) (by [Oisin Grehan](https://github.com/oising)) * [KoLite](https://github.com/CodeSeven/kolite) (by [Boris Yankov](https://github.com/borisyankov)) * [Leaflet](https://github.com/Leaflet/Leaflet) (by [Vladimir](https://github.com/rgripper)) From f975dc8d045dd77bdb96dec62767083579b13074 Mon Sep 17 00:00:00 2001 From: Diullei Gomes Date: Sat, 16 Feb 2013 18:36:18 -0200 Subject: [PATCH 7/9] marked header was normalized. --- marked/marked.d.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/marked/marked.d.ts b/marked/marked.d.ts index f669fda267..8b20b273ac 100644 --- a/marked/marked.d.ts +++ b/marked/marked.d.ts @@ -1,3 +1,8 @@ +// Type definitions for Marked +// Project: https://github.com/chjj/marked +// Definitions by: William Orr +// Definitions: https://github.com/borisyankov/DefinitelyTyped + declare module "marked" { export function (src: string, opt?: Options): string; export function lexer(src: string, opt?: Options): Array; From 76b0933813b7e3d2335af942f3661c8ae4e99b82 Mon Sep 17 00:00:00 2001 From: Diullei Gomes Date: Sat, 16 Feb 2013 18:38:20 -0200 Subject: [PATCH 8/9] phantomjs header was normalized. --- phantomjs/phantomjs.d.ts | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/phantomjs/phantomjs.d.ts b/phantomjs/phantomjs.d.ts index 3d851d422c..b1c692b5a8 100644 --- a/phantomjs/phantomjs.d.ts +++ b/phantomjs/phantomjs.d.ts @@ -1,9 +1,7 @@ -/********************************************************** -* * -* PlantomJS v1.8.0 API * -* https://github.com/ariya/phantomjs/wiki/API-Reference * -* * -**********************************************************/ +// Type definitions for PlantomJS v1.8.0 API +// Project: https://github.com/ariya/phantomjs/wiki/API-Reference +// Definitions by: Jed Hunsaker +// Definitions: https://github.com/borisyankov/DefinitelyTyped interface Phantom { From 1fd9f45cd2b748165fa8be61daab15b375afe7cd Mon Sep 17 00:00:00 2001 From: Diullei Gomes Date: Sat, 16 Feb 2013 18:44:25 -0200 Subject: [PATCH 9/9] restfy header was normalized. --- README.md | 1 + restify/restify.d.ts | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/README.md b/README.md index fddf3adf36..dfc5671f8d 100644 --- a/README.md +++ b/README.md @@ -112,6 +112,7 @@ List of Definitions * [PouchDB](http://pouchdb.com) (by [Bill Sears](https://github.com/MrBigDog2U/)) * [PreloadJS](http://www.createjs.com/#!/PreloadJS) (by [Pedro Ferreira](https://bitbucket.org/drk4)) * [QUnit](http://qunitjs.com/) (by [Diullei Gomes](https://github.com/Diullei)) +* [Restify](https://github.com/mcavage/node-restify) (by [Bret Little](https://github.com/blittle)) * [Rx.js](http://rx.codeplex.com/) (by [gsino](http://www.codeplex.com/site/users/view/gsino)) * [Raphael](http://raphaeljs.com/) (by [CheCoxshall](https://github.com/CheCoxshall)) * [require.js](http://requirejs.org/) (by [Josh Baldwin](https://github.com/jbaldwin/)) diff --git a/restify/restify.d.ts b/restify/restify.d.ts index 9d5edd93d9..3450b33b00 100644 --- a/restify/restify.d.ts +++ b/restify/restify.d.ts @@ -1,3 +1,8 @@ +// Type definitions for node.js REST framework 2.0 +// Project: https://github.com/mcavage/node-restify +// Definitions by: Bret Little +// Definitions: https://github.com/borisyankov/DefinitelyTyped + interface addressInterface { port: number; family: string;