mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-24 05:06:02 +08:00
"parent" argument of Restangular.service() should be optional
The documentation as well as the actual source code of Restangular define the parent argument of Restangular.service(route, parent) as optional: https://github.com/mgonto/restangular#decoupled-restangular-service function toService(route, parent) { [...] var collection = (parent || service).all(route);
This commit is contained in:
2
restangular/restangular.d.ts
vendored
2
restangular/restangular.d.ts
vendored
@@ -93,7 +93,7 @@ declare module restangular {
|
||||
withConfig(configurer: (RestangularProvider: IProvider) => any): IService;
|
||||
restangularizeElement(parent: any, element: any, route: string, collection?: any, reqParams?: any): IElement;
|
||||
restangularizeCollection(parent: any, element: any, route: string): ICollection;
|
||||
service(route: string, parent: any): IService;
|
||||
service(route: string, parent?: any): IService;
|
||||
stripRestangular(element: any): any;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user