import { ValidationRule } from 'vuetify' ; class Validations { public get required ( ) : ValidationRule { return ( value ) => ! ! value || 'This field is required' ; } public minLength ( length ) { return ( value ) => ( value && value . length >= length ) || `This field must be more than ${ length } characters long` ; } public maxLength ( length ) { return ( value ) => ( value && value . length <= length ) || `This field must be less than ${ length } characters long` ; } } export default new Validations ( ) ;