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>MaxLength

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

Checks if the string's length is not more than given number. Note: this function takes into account surrogate pairs. If given value is not a string, then it returns false.

Parameters

max: number
optional
validationOptions: ValidationOptions

Returns

PropertyDecorator