From 0b740a4d8f0e37e96806bfadf1248117b1a66a92 Mon Sep 17 00:00:00 2001 From: John Reilly Date: Mon, 2 Jun 2014 14:33:33 +0100 Subject: [PATCH] Switch config from any to IRequestShortcutConfig --- angularjs/angular.d.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/angularjs/angular.d.ts b/angularjs/angular.d.ts index f1637fe40..9d5074945 100755 --- a/angularjs/angular.d.ts +++ b/angularjs/angular.d.ts @@ -605,7 +605,7 @@ declare module ng { * @param url Relative or absolute URL specifying the destination of the request * @param config Optional configuration object */ - get(url: string, config?: any): IHttpPromise; + get(url: string, config?: IRequestShortcutConfig): IHttpPromise; /** * Shortcut method to perform DELETE request. @@ -613,7 +613,7 @@ declare module ng { * @param url Relative or absolute URL specifying the destination of the request * @param config Optional configuration object */ - delete(url: string, config?: any): IHttpPromise; + delete(url: string, config?: IRequestShortcutConfig): IHttpPromise; /** * Shortcut method to perform HEAD request. @@ -621,7 +621,7 @@ declare module ng { * @param url Relative or absolute URL specifying the destination of the request * @param config Optional configuration object */ - head(url: string, config?: any): IHttpPromise; + head(url: string, config?: IRequestShortcutConfig): IHttpPromise; /** * Shortcut method to perform JSONP request. @@ -629,7 +629,7 @@ declare module ng { * @param url Relative or absolute URL specifying the destination of the request * @param config Optional configuration object */ - jsonp(url: string, config?: any): IHttpPromise; + jsonp(url: string, config?: IRequestShortcutConfig): IHttpPromise; /** * Shortcut method to perform POST request. @@ -638,7 +638,7 @@ declare module ng { * @param data Request content * @param config Optional configuration object */ - post(url: string, data: any, config?: any): IHttpPromise; + post(url: string, data: any, config?: IRequestShortcutConfig): IHttpPromise; /** * Shortcut method to perform PUT request. @@ -647,7 +647,7 @@ declare module ng { * @param data Request content * @param config Optional configuration object */ - put(url: string, data: any, config?: any): IHttpPromise; + put(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.