From 00c03deeddaf7fe15272e87f2c13456eb01f2f15 Mon Sep 17 00:00:00 2001 From: ven Date: Mon, 13 Jun 2016 16:22:17 +0200 Subject: [PATCH] `new` on a `IResourceClass` will return a `IResource` (#9593) --- angularjs/angular-resource.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/angularjs/angular-resource.d.ts b/angularjs/angular-resource.d.ts index 1482c3f047..441a7e1d3d 100644 --- a/angularjs/angular-resource.d.ts +++ b/angularjs/angular-resource.d.ts @@ -113,7 +113,7 @@ declare namespace angular.resource { // Also, static calls always return the IResource (or IResourceArray) retrieved // https://github.com/angular/angular.js/blob/v1.2.0/src/ngResource/resource.js#L538-L549 interface IResourceClass { - new(dataOrParams? : any) : T; + new(dataOrParams? : any) : T & IResource; get: IResourceMethod; query: IResourceArrayMethod;