* Validates this construct. * * Invokes the `validate()` method on all validations added through * `addValidation()`. * * @returns an array of validation error messages associated with this * construct.
()
| 428 | * construct. |
| 429 | */ |
| 430 | public validate(): string[] { |
| 431 | return (this._validations ?? []).flatMap(v => v.validate()); |
| 432 | } |
| 433 | |
| 434 | /** |
| 435 | * Locks this construct from allowing more children to be added. After this |