diff --git a/angularjs/angular.d.ts b/angularjs/angular.d.ts index 429a79b483..140e56eee9 100755 --- a/angularjs/angular.d.ts +++ b/angularjs/angular.d.ts @@ -518,8 +518,8 @@ declare module ng { pendingRequests: any[]; } - // This is just for hinting. - // Some opetions might not be available depending on the request. + // This is just for hinting. + // Some opetions might not be available depending on the request. // see http://docs.angularjs.org/api/ng.$http#Usage for options explanations interface IRequestConfig { method: string; @@ -550,10 +550,11 @@ declare module ng { config?: IRequestConfig; } - interface IHttpPromise extends IPromise { + interface IHttpPromise extends IPromise { success(callback: IHttpPromiseCallback): IHttpPromise; error(callback: IHttpPromiseCallback): IHttpPromise; then(successCallback: (response: IHttpPromiseCallbackArg) => TResult, errorCallback?: (response: IHttpPromiseCallbackArg) => any): IPromise; + then(successCallback: (response: IHttpPromiseCallbackArg) => IPromise, errorCallback?: (response: IHttpPromiseCallbackArg) => any): IPromise; } interface IHttpProvider extends IServiceProvider {