mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-23 21:00:01 +08:00
Add some properties to Restangularized Elements (#9240)
When an element is restangularized it often has one to many of the properties added in this proposed code change. Leveraging the route, id, and reqParams gives greater functionality to restangularized objects in typescript projects.
This commit is contained in:
committed by
Masahiro Wakame
parent
1ec3d510e0
commit
1f8e49ff30
3
restangular/restangular.d.ts
vendored
3
restangular/restangular.d.ts
vendored
@@ -116,6 +116,9 @@ declare namespace restangular {
|
||||
withHttpConfig(httpConfig: angular.IRequestShortcutConfig): IElement;
|
||||
save(queryParams?: any, headers?: any): IPromise<any>;
|
||||
getRestangularUrl(): string;
|
||||
route?: string;
|
||||
id?: string;
|
||||
reqParams?: any;
|
||||
}
|
||||
|
||||
interface ICollection extends IService, Array<any> {
|
||||
|
||||
Reference in New Issue
Block a user