Restangular: Adding In Some Restangular Api Methods

This commit is contained in:
mick delaney
2014-01-10 12:47:05 +00:00
parent 8474ad5276
commit eaf4ce0ed4

View File

@@ -1,4 +1,4 @@
// Type definitions for Restangular v0.8.0 - 2013-06-03
// Type definitions for Restangular v1.2.2 - 2014-01-10
// Project: https://github.com/mgonto/restangular
// Definitions by: Boris Yankov <https://github.com/borisyankov/>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
@@ -12,6 +12,9 @@ interface Restangular extends RestangularCustom {
all(route: string): RestangularCollection;
copy(fromElement: any): RestangularElement;
withConfig(configurer: (RestangularProvider) => any): Restangular;
restangularizeElement(parent: any, element: any, route: string, collection?, reqParams?): RestangularElement;
restangularizeCollection(parent: any, element: any, route: string): RestangularCollection;
stripRestangular(element: any): any;
}
interface RestangularElement extends Restangular {