UNPKG

581 BTypeScriptView Raw
1import { ValidationOptions } from '../ValidationOptions';
2export declare const IS_BYTE_LENGTH = "isByteLength";
3/**
4 * Checks if the string's length (in bytes) falls in a range.
5 * If given value is not a string, then it returns false.
6 */
7export declare function isByteLength(value: unknown, min: number, max?: number): boolean;
8/**
9 * Checks if the string's length (in bytes) falls in a range.
10 * If given value is not a string, then it returns false.
11 */
12export declare function IsByteLength(min: number, max?: number, validationOptions?: ValidationOptions): PropertyDecorator;