mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-16 19:09:18 +08:00
new on a IResourceClass will return a IResource (#9593)
This commit is contained in:
2
angularjs/angular-resource.d.ts
vendored
2
angularjs/angular-resource.d.ts
vendored
@@ -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>;
|
||||
|
||||
Reference in New Issue
Block a user