From a59d261c8d31cecbbf3d5adc502deb104f974631 Mon Sep 17 00:00:00 2001 From: Michel Salib Date: Wed, 27 Nov 2013 15:06:38 +0100 Subject: [PATCH 1/3] Angular IServiceProvider::$get is injected Actually the $get function is called via invoke. --- angularjs/angular.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/angularjs/angular.d.ts b/angularjs/angular.d.ts index 083ec2c66..511707d36 100755 --- a/angularjs/angular.d.ts +++ b/angularjs/angular.d.ts @@ -20,7 +20,7 @@ declare module ng { // All service providers extend this interface interface IServiceProvider { - $get(): any; + $get(...services: any[]): any; } /////////////////////////////////////////////////////////////////////////// From 038f6bcb641ecafde6528dbf4678f818f6feaa42 Mon Sep 17 00:00:00 2001 From: Michel Salib Date: Wed, 27 Nov 2013 22:27:42 +0100 Subject: [PATCH 2/3] IServiceProvider::$get can be array or function --- angularjs/angular.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/angularjs/angular.d.ts b/angularjs/angular.d.ts index 511707d36..09fc95d1d 100755 --- a/angularjs/angular.d.ts +++ b/angularjs/angular.d.ts @@ -20,7 +20,7 @@ declare module ng { // All service providers extend this interface interface IServiceProvider { - $get(...services: any[]): any; + $get: any; } /////////////////////////////////////////////////////////////////////////// From 473659fb6663dbd3c680010fe9563fd727763539 Mon Sep 17 00:00:00 2001 From: Derek Cicerone Date: Wed, 27 Nov 2013 17:12:00 -0500 Subject: [PATCH 3/3] More implicit anys --- backbone/backbone.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backbone/backbone.d.ts b/backbone/backbone.d.ts index 32a3e9e36..b9aaa3e1c 100644 --- a/backbone/backbone.d.ts +++ b/backbone/backbone.d.ts @@ -157,8 +157,8 @@ declare module Backbone { comparator(element: Model): any; comparator(compare: Model, to?: Model): any; - add(model: Model, options?: AddOptions); - add(models: Model[], options?: AddOptions); + add(model: Model, options?: AddOptions): Collection; + add(models: Model[], options?: AddOptions): Collection; at(index: number): Model; get(id: any): Model; create(attributes: any, options?: ModelSaveOptions): Model;