maxLengthValidator

function maxLengthValidator(max): (x) => x is string

Parameters

ParameterType
maxnumber

Returns

Function

Parameters

ParameterType
xunknown

Returns

x is string