parameterize angular/IChangesObject

This commit is contained in:
Boris Cherny
2016-09-22 10:57:30 -07:00
parent f5bc7b6a5c
commit 5f3a129fd8

View File

@@ -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<any>;
}
interface IChangesObject {
currentValue: any;
previousValue: any;
interface IChangesObject<T> {
currentValue: T;
previousValue: T;
isFirstChange(): boolean;
}