[F] getDataDecoratorValue
function getDataDecoratorValue( program, decoratorFqn, target): unknown;Get the stored value for a data decorator applied to a target.
For no-arg data decorators, returns true if applied, undefined otherwise.
For single-arg data decorators, returns the value directly.
For multi-arg data decorators, returns a record of { paramName: value }.
Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
program | Program | The current program. |
decoratorFqn | string | The fully-qualified name of the decorator (e.g., “MyLib.myDec”). |
target | Type | The type to get the value for. |
Returns
Section titled “Returns”unknown
The stored value, or undefined if the decorator was not applied.