import { PropertyValidator } from "../PropertyValidator" ; import * as validatorJS from "validator" ; export class IsUppercaseValidator implements PropertyValidator < string > { isValid ( input ) { if ( typeof input === "undefined" || input === null ) { return false ; } return validatorJS . isUppercase ( input ) ; } }