Update IActionDescriptor accordingly to official documentation

This commit is contained in:
Dmytro Nemoga
2015-10-15 19:00:14 +03:00
parent 3a6e1b8988
commit 45fc24faad
2 changed files with 27 additions and 7 deletions

View File

@@ -46,11 +46,18 @@ declare module angular.resource {
// Just a reference to facilitate describing new actions
interface IActionDescriptor {
url?: string;
method: string;
isArray?: boolean;
params?: any;
url?: string;
isArray?: boolean;
transformRequest?: angular.IHttpResquestTransformer | angular.IHttpResquestTransformer[];
transformResponse?: angular.IHttpResponseTransformer | angular.IHttpResponseTransformer[];
headers?: any;
cache?: boolean | angular.ICacheObject;
timeout?: number | angular.IPromise<any>;
withCredentials?: boolean;
responseType?: string;
interceptor?: any;
}
// Baseclass for everyresource with default actions.