Skip to content

[F] validateDecoratorUniqueOnNode

function validateDecoratorUniqueOnNode(
context,
type,
decorator
): boolean;

Report duplicate applications of a decorator written directly on the type’s declaration. Inherited, copied, and augment-decorator applications do not count as duplicates here.

ParameterType
contextDecoratorContext
typeType
decoratorDecoratorFunction

boolean

Whether at most one matching application is present.