mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
Merge pull request #815 from santialbo/patch-3
Restangular also accepts strings as id for the method "one"
This commit is contained in:
commit
17df2c7aaa
1
restangular/restangular.d.ts
vendored
1
restangular/restangular.d.ts
vendored
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user