Skip to main content
ArrayMaxSize(max, validationOptions?): PropertyDecorator
Defined in: node_modules/.pnpm/class-validator@0.14.4/node_modules/class-validator/types/decorator/array/ArrayMaxSize.d.ts:12 Checks if the array’s length is less or equal to the specified number. If null or undefined is given then this function returns false.

Parameters

max

number

validationOptions?

ValidationOptions

Returns

PropertyDecorator