UNPKG

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