extends restangular IProvider in IService interface

This commit is contained in:
Matthew Hill
2015-06-29 23:21:37 +01:00
parent 6f04d25ad3
commit 7488c8df11
2 changed files with 45 additions and 1 deletions

View File

@@ -83,7 +83,7 @@ declare module restangular {
addRestangularMethod(name: string, operation: string, path?: string, params?: any, headers?: any, elem?: any): IPromise<any>;
}
interface IService extends ICustom {
interface IService extends ICustom, IProvider {
one(route: string, id?: number): IElement;
one(route: string, id?: string): IElement;
oneUrl(route: string, url: string): IElement;