Skip to content

[F] hasDataDecorator

function hasDataDecorator(
program,
decoratorFqn,
target): boolean;

Check if a data decorator has been applied to a target.

ParameterTypeDescription
programProgramThe current program.
decoratorFqnstringThe fully-qualified name of the decorator (e.g., “MyLib.myDec”).
targetTypeThe type to check.

boolean