Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/deno_class_validator/src/index.ts>ArrayMaxSize

Decorator-based property validation for classes.
Latest
function ArrayMaxSize
import { ArrayMaxSize } from "https://deno.land/x/deno_class_validator@v1.0.0/src/index.ts";

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
optional
validationOptions: ValidationOptions

Returns

PropertyDecorator