From 98a5df369c5fc159c6b193fedc205394ce847761 Mon Sep 17 00:00:00 2001 From: basarat Date: Wed, 17 Jul 2013 22:12:07 +1000 Subject: [PATCH 1/6] scopes have $parent which are also scopes scopes have $parent which are also scopes --- angularjs/angular.d.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/angularjs/angular.d.ts b/angularjs/angular.d.ts index fb452fa27..7d4886fd0 100644 --- a/angularjs/angular.d.ts +++ b/angularjs/angular.d.ts @@ -199,6 +199,8 @@ declare module ng { $watch(watchExpression: string, listener?: (newValue: any, oldValue: any, scope: IScope) => any, objectEquality?: bool): Function; $watch(watchExpression: (scope: IScope) => any, listener?: string, objectEquality?: bool): Function; $watch(watchExpression: (scope: IScope) => any, listener?: (newValue: any, oldValue: any, scope: IScope) => any, objectEquality?: bool): Function; + + $parent: IScope; $id: number; } From 155b253f81dac9512e7c95bca38b9824ff221ff8 Mon Sep 17 00:00:00 2001 From: basarat Date: Wed, 17 Jul 2013 22:18:16 +1000 Subject: [PATCH 2/6] the $observe function http://docs.angularjs.org/guide/directive#attributes --- angularjs/angular.d.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/angularjs/angular.d.ts b/angularjs/angular.d.ts index fb452fa27..3e0185c35 100644 --- a/angularjs/angular.d.ts +++ b/angularjs/angular.d.ts @@ -119,6 +119,7 @@ declare module ng { /////////////////////////////////////////////////////////////////////////// interface IAttributes { $set(name: string, value: any): void; + $observe(name: string, fn:(value?:any)=>any):void; $attr: any; } From 5c3dde9af26895f32595bfc47014f1b74b4b506a Mon Sep 17 00:00:00 2001 From: Sergi Mansilla Date: Wed, 17 Jul 2013 16:08:17 +0200 Subject: [PATCH 3/6] Add request for SVG.js definition --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 110d22b54..5176fe729 100755 --- a/README.md +++ b/README.md @@ -200,3 +200,4 @@ Requested Definitions * [MooTools](http://mootools.net/) * [Lo-Dash](http://lodash.com/) * [java](https://github.com/nearinfinity/node-java) +* [SVG.js](http://www.svgjs.com/) From 2aa9a41e3bb8b71418946d6d6eab063b583a08e5 Mon Sep 17 00:00:00 2001 From: Marc-Andre Roy Date: Wed, 17 Jul 2013 10:47:27 -0400 Subject: [PATCH 4/6] Allow arrayPushAll to accept an ObservableArray as first parameter --- knockout/knockout.d.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/knockout/knockout.d.ts b/knockout/knockout.d.ts index 1e23e868c..1d77e261d 100644 --- a/knockout/knockout.d.ts +++ b/knockout/knockout.d.ts @@ -256,6 +256,8 @@ interface KnockoutUtils { arrayFilter(array: any[], predicate: (item) => boolean): any[]; arrayPushAll(array: any[], valuesToPush: any[]): any[]; + + arrayPushAll(array: KnockoutObservableArray, valuesToPush: any[]): any[]; extend(target, source); From 0592d2fb45470cb12f3f6f11e426c574d977a29b Mon Sep 17 00:00:00 2001 From: Marc-Andre Roy Date: Wed, 17 Jul 2013 10:48:04 -0400 Subject: [PATCH 5/6] Update version number to 2.3 --- knockout/knockout.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/knockout/knockout.d.ts b/knockout/knockout.d.ts index 1d77e261d..63e3ee61d 100644 --- a/knockout/knockout.d.ts +++ b/knockout/knockout.d.ts @@ -1,4 +1,4 @@ -// Type definitions for Knockout 2.2 +// Type definitions for Knockout 2.3 // Project: http://knockoutjs.com // Definitions by: Boris Yankov // Definitions: https://github.com/borisyankov/DefinitelyTyped From 51042d8ae1d8177f866cdefdfe1df0c6c897f1e7 Mon Sep 17 00:00:00 2001 From: Marc-Andre Roy Date: Wed, 17 Jul 2013 10:58:16 -0400 Subject: [PATCH 6/6] Change url typing for any in IRouteParameters Change the typing of the url parameter in IRouteInfoParameters from string to any. Using a string disallow the use of Regular Expression as URL value. Using any instead of string give more flexibility. Using RegExp as URL gives you the possibility to specify "catch all" routes. --- durandal/durandal.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/durandal/durandal.d.ts b/durandal/durandal.d.ts index 043ab3f66..e47bb1f15 100644 --- a/durandal/durandal.d.ts +++ b/durandal/durandal.d.ts @@ -375,7 +375,7 @@ declare module "durandal/plugins/router" { */ interface IRouteInfoParameters { /** your url pattern. The only required parameter */ - url: string; + url: any; /** if not supplied, router.convertRouteToName derives it */ moduleId?: string; /** if not supplied, router.convertRouteToModuleId derives it */