Permalink
Browse files

fix(typescript): add definition for DirtyCheckProperty

fixes #648
  • Loading branch information...
jdanyow committed Dec 3, 2017
1 parent 862ece4 commit 2c29855a2d792fe1d5456988d97b6926450da0f0
Showing with 34 additions and 0 deletions.
  1. +34 −0 src/aurelia-binding.d.ts
View
@@ -253,6 +253,40 @@ export declare class DataAttributeObserver implements InternalPropertyObserver {
unsubscribe(context: any, callable: Callable): void;
}
/**
* Property observer for properties that cannot be observed by other means
*/
export declare class DirtyCheckProperty implements InternalPropertyObserver {
/**
* Gets the property value.
*/
getValue(): any;
/**
* Sets the property value.
*/
setValue(newValue: any): void;
/**
* Subscribe to property changes with a callback function.
*/
subscribe(callback: (newValue: any, oldValue: any) => void): void;
/**
* Subscribe a callable object to property changes.
* @param context A value to be passed to the callable object's call function when a property change occurs.
* @param callable A callable object.
*/
subscribe(context: any, callable: Callable): void;
/**
* Unsubscribes a callback function from property changes.
*/
unsubscribe(callback: (newValue: any, oldValue: any) => void): void;
/**
* Unsubscribes a callable object from property changes.
* @param context A value to be passed to the callable object's call function when a property change occurs.
* @param callable A callable object.
*/
unsubscribe(context: any, callable: Callable): void;
}
/**
* Observes collection mutation.
*/

0 comments on commit 2c29855

Please sign in to comment.