Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "FieldValidator"

Index

Functions

createFieldValidator

  • createFieldValidator<TSource, TValue, TMeta>(name: keyof TSource, validator: IValidator<TValue | TSource[keyof TSource], Array<IErrorMessage<any>>, TMeta>, seelctValue?: function): IValidator<TSource, FormErrors<TSource>, TMeta>
  • Type parameters

    • TSource

    • TValue

    • TMeta

    Parameters

    • name: keyof TSource
    • validator: IValidator<TValue | TSource[keyof TSource], Array<IErrorMessage<any>>, TMeta>
    • Optional seelctValue: function
        • (source: TSource): TValue | TSource[keyof TSource]
        • Parameters

          • source: TSource

          Returns TValue | TSource[keyof TSource]

    Returns IValidator<TSource, FormErrors<TSource>, TMeta>

Generated using TypeDoc