* Validates this construct. * * Invokes the `validate()` method on all validations added through * `addValidation()`. * * @returns an array of validation error messages associated with this * construct.
()
| 455 | * construct. |
| 456 | */ |
| 457 | public validate(): string[] { |
| 458 | return (this._validations ?? []).flatMap(v => v.validate()); |
| 459 | } |
| 460 | |
| 461 | /** |
| 462 | * Locks this construct from allowing more children to be added. After this |