new on a IResourceClass will return a IResource (#9593)

This commit is contained in:
ven
2016-06-13 16:22:17 +02:00
committed by Masahiro Wakame
parent f481e77dfc
commit 00c03deedd

View File

@@ -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<T> {
new(dataOrParams? : any) : T;
new(dataOrParams? : any) : T & IResource<T>;
get: IResourceMethod<T>;
query: IResourceArrayMethod<T>;