Skip to content

Latest commit

 

History

History
27 lines (16 loc) · 896 Bytes

File metadata and controls

27 lines (16 loc) · 896 Bytes

Home > @skunkteam/types > BaseTypeImpl > withValidation

BaseTypeImpl.withValidation() method

Clone the type with the added validation.

Signature:

withValidation(validation: Validator<ResultType>): this;

Parameters

Parameter Type Description
validation Validator<ResultType> the additional validation to restrict the current type

Returns:

this

Remarks

Does not create a brand.