import { AbstractControl } from "../abstract/abstract-control" ; import { ValidatorFn } from '../models/interface/validator-fn' ; import { RegExRule } from "../util/regex-rules" ; import { AlphaConfig } from "../models/config/alpha-config" ; import { AnnotationTypes } from "../core/validator.static" ; import { alphaValidation } from "../validators-function/alpha-validation.function" ; export function alphaNumericValidator ( configModel ) { return ( control ) : { [ key ] : any ; } | null => { return alphaValidation ( configModel , control , [ RegExRule . alphaNumeric , RegExRule . alphaNumericWithSpace ] , AnnotationTypes . alphaNumeric ) ; } ; }