Interface FinalizeValidationOptions<FieldBindingsT, AdditionalDependenciesT>

interface FinalizeValidationOptions<FieldBindingsT, AdditionalDependenciesT> {
    additionalDependencies?: AdditionalDependenciesT;
    fieldBindings?: FieldBindingsT;
    onInvalid?: ((validationError: ValidationError, fieldBindingValues: InferBindingValueTypes<FieldBindingsT>, additionalDependencyValues: InferOptionalWaitableAndBindingValueTypes<AdditionalDependenciesT>, fieldBindings: FieldBindingsT, additionalDependencies: AdditionalDependenciesT) => void);
    onValid?: ((fieldBindingValues: InferBindingValueTypes<FieldBindingsT>, additionalDependencyValues: InferOptionalWaitableAndBindingValueTypes<AdditionalDependenciesT>, fieldBindings: FieldBindingsT, additionalDependencies: AdditionalDependenciesT) => void);
}

Type Parameters

Properties

additionalDependencies?: AdditionalDependenciesT

Additional dependencies, which must not overlap markBindingsAsModified

fieldBindings?: FieldBindingsT

Bindings that, when unmodified, cause validators to be disabled. Usually individual field bindings.

onInvalid?: ((validationError: ValidationError, fieldBindingValues: InferBindingValueTypes<FieldBindingsT>, additionalDependencyValues: InferOptionalWaitableAndBindingValueTypes<AdditionalDependenciesT>, fieldBindings: FieldBindingsT, additionalDependencies: AdditionalDependenciesT) => void)

Called if the validator results in "invalidity"

onValid?: ((fieldBindingValues: InferBindingValueTypes<FieldBindingsT>, additionalDependencyValues: InferOptionalWaitableAndBindingValueTypes<AdditionalDependenciesT>, fieldBindings: FieldBindingsT, additionalDependencies: AdditionalDependenciesT) => void)

Called if the validator results in "validity"