mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-23 21:00:01 +08:00
Made post elementToPost optional (#18474)
This isn't mandatory as restangular.one('objects',123).post('change') is a valid call, so made the elementToPost optional
This commit is contained in:
2
types/restangular/index.d.ts
vendored
2
types/restangular/index.d.ts
vendored
@@ -121,7 +121,7 @@ declare namespace restangular {
|
||||
getList(subElement?: any, queryParams?: any, headers?: any): ICollectionPromise<any>;
|
||||
getList<T>(subElement?: any, queryParams?: any, headers?: any): ICollectionPromise<T>;
|
||||
put(queryParams?: any, headers?: any): IPromise<any>;
|
||||
post(subElement: any, elementToPost: any, queryParams?: any, headers?: any): IPromise<any>;
|
||||
post(subElement: any, elementToPost?: any, queryParams?: any, headers?: any): IPromise<any>;
|
||||
post<T>(subElement: any, elementToPost: T, queryParams?: any, headers?: any): IPromise<T>;
|
||||
remove(queryParams?: any, headers?: any): IPromise<any>;
|
||||
head(queryParams?: any, headers?: any): IPromise<any>;
|
||||
|
||||
Reference in New Issue
Block a user