Skip to content

[F] getAutoDecoratorValue

function getAutoDecoratorValue(
program,
decoratorFqn,
target,
scope?): Record<string, unknown> | undefined;

Get the stored value for an auto decorator applied to a target. Always returns a record of { paramName: value } (empty record {} for no-arg decorators).

ParameterTypeDescription
programProgramThe current program.
decoratorFqnstringThe fully-qualified name of the decorator (e.g., “MyLib.myDec”).
targetTypeThe type to get the value for.
scope?ScopeOptional scope used to resolve when-conditioned applications. A scoped application whose condition matches takes precedence over the unscoped value.

Record<string, unknown> | undefined

The stored record, or undefined if the decorator was not applied.