Restangular also accepts strings as id for the method "one"

This commit is contained in:
Santi Albo
2013-08-01 15:16:05 +01:00
parent ac5577e72e
commit 3056c411a7

View File

@@ -8,6 +8,7 @@
interface Restangular extends RestangularCustom {
one(route: string, id?: number): RestangularElement;
one(route: string, id?: string): RestangularElement;
all(route: string): RestangularCollection;
copy(fromElement: any): RestangularElement;
withConfig(configurer: any): Restangular;