Variable stringValidatorsConst string Validators : { matches ( regex : RegExp ) : Validator < string , string > ; maxLength ( max : number ) : Validator < string , string > ; minLength ( min : number ) : Validator < string , string > ; noWhitespace ( ) : Validator < string , string > ; notEmpty ( ) : Validator < string , string > ; } = ... Type declaration matches : functionmatches ( regex ) : Validator < string , string > Returns Validator < string , string > Defined in util/validation/StringSchema.ts:71 max Length : functionmax Length ( max ) : Validator < string , string > Returns Validator < string , string > Defined in util/validation/StringSchema.ts:49 min Length : functionmin Length ( min ) : Validator < string , string > Returns Validator < string , string > Defined in util/validation/StringSchema.ts:36 no Whitespace : functionno Whitespace ( ) : Validator < string , string > Returns Validator < string , string > Defined in util/validation/StringSchema.ts:60 not Empty : functionnot Empty ( ) : Validator < string , string > Returns Validator < string , string > Defined in util/validation/StringSchema.ts:26 Defined in util/validation/StringSchema.ts:22
Creates a validator that asserts that the input string matches the given regex.