From 9af1c6884aa8a69a0b13e7a792b31a40b251f560 Mon Sep 17 00:00:00 2001 From: Jose Chiarino Date: Wed, 7 Sep 2016 21:49:52 -0700 Subject: [PATCH] Add eventHandlers/uploadEventHandlers properties to angular $http configuration object https://docs.angularjs.org/api/ng/service/$http#usage --- angularjs/angular.d.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/angularjs/angular.d.ts b/angularjs/angular.d.ts index 3d5e5a7b19..ec3b9abf92 100644 --- a/angularjs/angular.d.ts +++ b/angularjs/angular.d.ts @@ -1411,6 +1411,16 @@ declare namespace angular { * Absolute or relative URL of the resource that is being requested. */ url: string; + /** + * Event listeners to be bound to the XMLHttpRequest object. + * To bind events to the XMLHttpRequest upload object, use uploadEventHandlers. The handler will be called in the context of a $apply block. + */ + eventHandlers?: { [type: string]: EventListenerOrEventListenerObject }; + /** + * Event listeners to be bound to the XMLHttpRequest upload object. + * To bind events to the XMLHttpRequest object, use eventHandlers. The handler will be called in the context of a $apply block. + */ + uploadEventHandlers?: { [type: string]: EventListenerOrEventListenerObject }; } interface IHttpHeadersGetter {