1 | import { ValidationOptions } from '../ValidationOptions';
|
2 | export declare const MAX_LENGTH = "maxLength";
|
3 | /**
|
4 | * Checks if the string's length is not more than given number. Note: this function takes into account surrogate pairs.
|
5 | * If given value is not a string, then it returns false.
|
6 | */
|
7 | export declare function maxLength(value: unknown, max: number): boolean;
|
8 | /**
|
9 | * Checks if the string's length is not more than given number. Note: this function takes into account surrogate pairs.
|
10 | * If given value is not a string, then it returns false.
|
11 | */
|
12 | export declare function MaxLength(max: number, validationOptions?: ValidationOptions): PropertyDecorator;
|