UNPKG

class-validator

Version:

Decorator-based property validation for classes.

13 lines (12 loc) 484 B
import { ValidationOptions } from '../ValidationOptions'; export declare const IS_ASCII = "isAscii"; /** * Checks if the string contains ASCII chars only. * If given value is not a string, then it returns false. */ export declare function isAscii(value: unknown): boolean; /** * Checks if the string contains ASCII chars only. * If given value is not a string, then it returns false. */ export declare function IsAscii(validationOptions?: ValidationOptions): PropertyDecorator;