Skip to content

[F] getAutoDecoratorValue

function getAutoDecoratorValue(
program,
decoratorFqn,
target): 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.

Record<string, unknown> | undefined

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