import { AsyncValidatorFn , ValidatorFn } from "@angular/forms" ; import { PatternConfig } from "../models/config/pattern-config" ; import { patternValidator } from '../reactive-form-validators/index' ; import { AnnotationTypes } from "../core/validator.static" ; import { baseValidator , baseAsyncValidatorExtension } from "./base-validator.function" ; import { baseAsyncValidator } from "../reactive-form-validators/async/base.async.validator" ; export function patternValidatorExtension ( config ? ) { return baseValidator ( config , AnnotationTypes . pattern , patternValidator ( config ) ) ; } export function patternAsyncValidatorExtension ( config ? ) { return baseAsyncValidatorExtension ( config , AnnotationTypes . pattern , baseAsyncValidator ( config , AnnotationTypes . pattern ) ) ; }