import { baseDecoratorFunction } from "./base-decorator.function" ; import { AnnotationTypes } from '../core/validator.static' ; import { baseAsyncValidator } from "../reactive-form-validators/async/base.async.validator" ; import { StringValueConfig } from "../models/config/string-value-config" ; export function endsWith ( config ) { return baseDecoratorFunction ( AnnotationTypes . endsWith , config ) ; } export function endsWithAsync ( config ? ) { return baseDecoratorFunction ( AnnotationTypes . endsWith , [ baseAsyncValidator ( config , AnnotationTypes . endsWith ) ] , true ) ; }