This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Property decorator to log when property values changes. | |
* @param {any} target The constructor function of a class for a static member or the prototype of the class for an instance member. | |
* @param {string} key The name of the member. | |
*/ | |
function logProperty(target: any, key: string) { | |
// Property value. | |
let _val = this[key]; | |
// Property getter. |