UNPKG

class-validator

Version:

Decorator-based property validation for classes.

14 lines (13 loc) 604 B
import { ValidationOptions } from '../ValidationOptions'; import * as ValidatorJS from 'validator'; export declare const IS_ALPHA = "isAlpha"; /** * Checks if the string contains only letters (a-zA-Z). * If given value is not a string, then it returns false. */ export declare function isAlpha(value: unknown, locale?: ValidatorJS.AlphaLocale): boolean; /** * Checks if the string contains only letters (a-zA-Z). * If given value is not a string, then it returns false. */ export declare function IsAlpha(locale?: ValidatorJS.AlphaLocale, validationOptions?: ValidationOptions): PropertyDecorator;