Skip to main content
MinLength(min, validationOptions?): PropertyDecorator
Defined in: node_modules/.pnpm/class-validator@0.14.4/node_modules/class-validator/types/decorator/string/MinLength.d.ts:12 Checks if the string’s length is not less than given number. Note: this function takes into account surrogate pairs. If given value is not a string, then it returns false.

Parameters

min

number

validationOptions?

ValidationOptions

Returns

PropertyDecorator