Added tests for angular resource type definitions

This commit is contained in:
Jared Reynolds
2013-10-16 10:55:39 -07:00
committed by John Emau
parent c8881ff07b
commit 604c5b5d6f
2 changed files with 80 additions and 7 deletions

View File

@@ -1,7 +1,6 @@
// Type definitions for Angular JS 1.2 (ngResource module)
// Type definitions for Angular JS 1.2.0 (ngResource module)
// Project: http://angularjs.org
// Definitions by: Diego Vilar <http://github.com/diegovilar>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
// Definitions: https://github.com/daptiv/DefinitelyTyped
/// <reference path="angular.d.ts" />
@@ -19,10 +18,10 @@ declare module ng.resource {
// that deeply.
///////////////////////////////////////////////////////////////////////////
interface IResourceService {
(url: string, paramDefaults?: any,
/** example: {update: { method: 'PUT' }, delete: deleteDescriptor }
where deleteDescriptor : IActionDescriptor */
actionDescriptors?: any): IResourceClass;
(url: string, paramDefaults?: any,
/** example: {update: { method: 'PUT' }, delete: deleteDescriptor }
where deleteDescriptor : IActionDescriptor */
actionDescriptors?: any): IResourceClass;
}
// Just a reference to facilitate describing new actions