External module "FieldValidator"
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
Parameters
-
name: keyof TSource
-
validator: IValidator<TValue | TSource[keyof TSource], Array<IErrorMessage<any>>, TMeta>
-
Optional seelctValue: function
-
- (source: TSource): TValue | TSource[keyof TSource]
-
Parameters
Returns TValue
|
TSource[keyof TSource]