mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-23 04:49:15 +08:00
Define patch() on $http
This commit is contained in:
9
angularjs/angular.d.ts
vendored
9
angularjs/angular.d.ts
vendored
@@ -1152,6 +1152,15 @@ declare module ng {
|
||||
*/
|
||||
put<T>(url: string, data: any, config?: IRequestShortcutConfig): IHttpPromise<T>;
|
||||
|
||||
/**
|
||||
* Shortcut method to perform PATCH request.
|
||||
*
|
||||
* @param url Relative or absolute URL specifying the destination of the request
|
||||
* @param data Request content
|
||||
* @param config Optional configuration object
|
||||
*/
|
||||
patch<T>(url: string, data: any, config?: IRequestShortcutConfig): IHttpPromise<T>;
|
||||
|
||||
/**
|
||||
* Runtime equivalent of the $httpProvider.defaults property. Allows configuration of default headers, withCredentials as well as request and response transformations.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user