mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
Remove unnecessary definitions and other small fixes
- Use optional parameters to delete unnecessary definitions. - `queryParams` type is `any`, not `string`. - Delete `getList` type definition without any arguments for `RestangularElement` since the documentation says that `subElement` is mandatory (https://github.com/mgonto/restangular#element-methods)
This commit is contained in:
Vendored
+3
-11
@@ -15,18 +15,10 @@ interface Restangular extends RestangularCustom {
|
||||
}
|
||||
|
||||
interface RestangularElement extends Restangular {
|
||||
get (): ng.IPromise<any>;
|
||||
get (params: any): ng.IPromise<any>;
|
||||
get (params: any, headers: any): ng.IPromise<any>;
|
||||
|
||||
getList(): ng.IPromise<any>;
|
||||
getList(subElement: any): ng.IPromise<any>;
|
||||
getList(subElement: any, queryParams: string, headers: any): ng.IPromise<any>;
|
||||
|
||||
put(queryParams?: string, headers?: any): ng.IPromise<any>;
|
||||
|
||||
get (queryParams?: any, headers?: any): ng.IPromise<any>;
|
||||
getList(subElement: any, queryParams?: any, headers?: any): ng.IPromise<any>;
|
||||
put(queryParams?: any, headers?: any): ng.IPromise<any>;
|
||||
post(subElement, elementToPost, queryParams?, headers?): ng.IPromise<any>;
|
||||
|
||||
remove(queryParams?, headers?): ng.IPromise<any>;
|
||||
head(queryParams?, headers?): ng.IPromise<any>;
|
||||
trace(queryParams?, headers?): ng.IPromise<any>;
|
||||
|
||||
Reference in New Issue
Block a user