Home > @skunkteam/types > BaseTypeImpl > withValidation
Clone the type with the added validation.
Signature:
withValidation(validation: Validator<ResultType>): this;| Parameter | Type | Description |
|---|---|---|
| validation | Validator<ResultType> | the additional validation to restrict the current type |
Returns:
this
Does not create a brand.