Options
All
  • Public
  • Public/Protected
  • All
Menu

Class FieldValidator<TSource, TValue, TMeta>

Type parameters

  • TSource

  • TValue

  • TMeta

Hierarchy

  • FieldValidator

Implements

Index

Constructors

Properties

Methods

Constructors

constructor

  • Parameters

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

          • source: TSource

          Returns TValue | TSource[keyof TSource]

    Returns FieldValidator

Properties

Private name

name: keyof TSource

Private selectValue

selectValue: function

Type declaration

    • (source: TSource): TValue | TSource[keyof TSource]
    • Parameters

      • source: TSource

      Returns TValue | TSource[keyof TSource]

Private validator

validator: IValidator<TValue | TSource[keyof TSource], Array<IErrorMessage<any>>, TMeta>

Methods

validate

  • validate(data: TSource, meta: TMeta): FormErrors<TSource>

Generated using TypeDoc