DefinitelyTyped/restangular
Marvin Luchs a013599373 Added missing plain() and clone() methods to Restangular's IElement and ICollection
restangularizeCollection() [1] and restangularizeElem() [2] are used to
create objects that implement IElement and ICollection respectively.
Both use restangularizeBase() [3] which adds the clone() and plane()
methods.

Therefore both IElement and ICollection should both implement clone()
and plain(). Additionally I added a generic variant of the already
existing plain() method in IElement to both IElement and ICollection.

[1]
https://github.com/mgonto/restangular/blob/master/src/restangular.js#L982
[2]
https://github.com/mgonto/restangular/blob/master/src/restangular.js#L951
[3]
https://github.com/mgonto/restangular/blob/master/src/restangular.js#L764
2015-04-29 13:38:43 +02:00
..
restangular-tests.ts Add missing plain and clone method to restangular IElement 2015-03-26 22:41:54 -04:00
restangular.d.ts Added missing plain() and clone() methods to Restangular's IElement and ICollection 2015-04-29 13:38:43 +02:00