From 13d8727de01b768591781ec4f438dc1d85bc8e30 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Werlang?= Date: Wed, 11 Mar 2015 08:43:49 -0300 Subject: [PATCH] Define patch() on $http --- angularjs/angular.d.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/angularjs/angular.d.ts b/angularjs/angular.d.ts index c907bbfe94..e5f6f779eb 100755 --- a/angularjs/angular.d.ts +++ b/angularjs/angular.d.ts @@ -1152,6 +1152,15 @@ declare module ng { */ put(url: string, data: any, config?: IRequestShortcutConfig): IHttpPromise; + /** + * 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(url: string, data: any, config?: IRequestShortcutConfig): IHttpPromise; + /** * Runtime equivalent of the $httpProvider.defaults property. Allows configuration of default headers, withCredentials as well as request and response transformations. */