mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-07-02 16:20:07 +00:00
Merge pull request #1854 from scottmcarthur/patch-1
Added new() to IResourceClass
This commit is contained in:
1
angularjs/angular-resource.d.ts
vendored
1
angularjs/angular-resource.d.ts
vendored
@@ -51,6 +51,7 @@ declare module ng.resource {
|
||||
// to be considered as parameters to the request.
|
||||
// https://github.com/angular/angular.js/blob/v1.2.0/src/ngResource/resource.js#L461-L465
|
||||
interface IResourceClass<T> {
|
||||
new(dataOrParams? : any) : T;
|
||||
get(): T;
|
||||
get(dataOrParams: any): T;
|
||||
get(dataOrParams: any, success: Function): T;
|
||||
|
||||
Reference in New Issue
Block a user