Skip to content

[I] DecoratorValidator

Validation callback contract whose target and argument types are inferred from decorator definitions.

Type ParameterDefault type
T extends TypeKind-
P extends readonly DecoratorParamDefinition<TypeKind>[]-
S extends | DecoratorParamDefinition<TypeKind> | undefinedundefined
validate(
context,
target,
parameters
): boolean;

Return whether this decorator application is valid for the supplied target and arguments.

ParameterType
contextDecoratorContext
targetInferredTypeSpecValue<T>
parametersInferParameters<P, S>

boolean