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

Parameters

min

number

max?

number

validationOptions?

ValidationOptions

Returns

PropertyDecorator