[I] DecoratorValidatorCallback
Properties
Section titled “Properties”| Property | Modifier | Type | Description |
|---|---|---|---|
validator | readonly | () => readonly Diagnostic[] | Validator implementation. This function will be run according to the kind defined above. |
when | readonly | "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. |