diff --git a/angularjs/angular-resource.d.ts b/angularjs/angular-resource.d.ts index f7e803c1c8..bf983c9a69 100644 --- a/angularjs/angular-resource.d.ts +++ b/angularjs/angular-resource.d.ts @@ -52,7 +52,7 @@ declare namespace angular.resource { where deleteDescriptor : IActionDescriptor */ actions?: IActionHash, options?: IResourceOptions): IResourceClass; } - + // Hash of action descriptors allows custom action names interface IActionHash { [action: string]: IActionDescriptor @@ -165,6 +165,8 @@ declare namespace angular.resource { * Really just a regular Array object with $promise and $resolve attached to it */ interface IResourceArray extends Array> { + $cancelRequest(): void; + /** the promise of the original server interaction that created this collection. **/ $promise : angular.IPromise>; $resolved : boolean; @@ -191,7 +193,7 @@ declare namespace angular { /** creating a resource service factory */ factory(name: string, resourceServiceFactoryFunction: angular.resource.IResourceServiceFactoryFunction): IModule; } - + namespace auto { interface IInjectorService { get(name: '$resource'): ng.resource.IResourceService;