Skip to content

[I] DecoratorValidatorCallback

PropertyModifierTypeDescription
validatorreadonly() => readonly Diagnostic[]Validator implementation. This function will be run according to the kind defined above.
whenreadonly"onFinish" | "onGraphFinish"When should this validator run. “onFinish”: After all decorators are run on the same type. Useful if trying to validate this decorator is compatible with other decorators without relying on the order they are applied. “onGraphFinish”: After everything is checked in the type graph. Useful when trying to get an overall view of the program.