(shadowPropertyName: string, forceAsync?: boolean): PropertyDecorator
shadowPropertyName— the name of the shadow property that should be observed instead.
forceAsync— if true, forces observers to observe this property asynchronously only, to prevent the occurance of side effects when setting the value of the shadow property; any attempt to observe the decorated property using a synchronous observer method (without
...Async) results in an error.
Observed property decorator: use given property as the shadow (writable) property for decorated property.
The decorated property itself (which must have a property getter) will not be observed, and given property is observed instead. However, the ‘current value’ passed to observer methods will still be the value that is obtained through the getter of the decorated property.