Skip to main content

@microsoft/fast-element > volatile

volatile() function

Decorator: Marks a property getter as having volatile observable dependencies.

Signature:
export declare function volatile(target: {}, name: string | Accessor, descriptor: PropertyDescriptor): PropertyDescriptor;

Parameters

ParameterTypeDescription
target{}The target that the property is defined on.
namestring | AccessorThe property name.
descriptorPropertyDescriptor
Returns:

PropertyDescriptor