From 5f3a129fd895c563741a3fd9108b5dc24d880fec Mon Sep 17 00:00:00 2001 From: Boris Cherny Date: Thu, 22 Sep 2016 10:57:30 -0700 Subject: [PATCH] parameterize angular/IChangesObject --- angularjs/angular.d.ts | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/angularjs/angular.d.ts b/angularjs/angular.d.ts index d78f39bec9..9838a98cf8 100644 --- a/angularjs/angular.d.ts +++ b/angularjs/angular.d.ts @@ -1413,12 +1413,12 @@ declare namespace angular { */ url: string; /** - * Event listeners to be bound to the XMLHttpRequest object. + * 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. + * 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 }; @@ -1781,14 +1781,14 @@ declare namespace angular { */ $postLink?(): void; } - + interface IOnChangesObject { - [property: string]: IChangesObject; + [property: string]: IChangesObject; } - interface IChangesObject { - currentValue: any; - previousValue: any; + interface IChangesObject { + currentValue: T; + previousValue: T; isFirstChange(): boolean; }