From a766c1df3024938fa14e74982e3348e28187bb0e Mon Sep 17 00:00:00 2001 From: Shihab Uddin Date: Wed, 8 Feb 2017 12:52:01 +0100 Subject: [PATCH] angular: Removed success and error methods of IHttpPromise - they are removed in angular 1.6 --- angular/index.d.ts | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/angular/index.d.ts b/angular/index.d.ts index 099ac2fc27..67979435f1 100644 --- a/angular/index.d.ts +++ b/angular/index.d.ts @@ -1505,18 +1505,6 @@ declare namespace angular { } interface IHttpPromise extends IPromise> { - /** - * The $http legacy promise methods success and error have been deprecated. Use the standard then method instead. - * If $httpProvider.useLegacyPromiseExtensions is set to false then these methods will throw $http/legacy error. - * @deprecated - */ - success?(callback: IHttpPromiseCallback): IHttpPromise; - /** - * The $http legacy promise methods success and error have been deprecated. Use the standard then method instead. - * If $httpProvider.useLegacyPromiseExtensions is set to false then these methods will throw $http/legacy error. - * @deprecated - */ - error?(callback: IHttpPromiseCallback): IHttpPromise; } // See the jsdoc for transformData() at https://github.com/angular/angular.js/blob/master/src/ng/http.js#L228