import { PropertyValidator } from "../PropertyValidator" ; import { AlphaLocale } from "../../shared" ; import * as validatorJS from "validator" ; export class IsAlphaValidator implements PropertyValidator < string > { constructor ( private locale ? ) { } isValid ( input ) { if ( input ) { return validatorJS . isAlpha ( input , this . locale ) ; } return false ; } }