Interface IValidationContainerObject<TValue, TRawValue>

Object provides function for validation a value within the validation container.

interface IValidationContainerObject<TValue, TRawValue = TValue> {
    id?: string;
    isAsync: boolean;
    validator: ValidationContainerValidator<TValue, TRawValue>;
}

Type Parameters

  • TValue

    Type of the resulting value to validate.

  • TRawValue = TValue

    Type of the raw value to validate. Defaults to TValue.

Properties

Properties

id?: string

Optional identifier for the validator. This identifier can be used for identifying or searching for the validator within the container.

isAsync: boolean

Indicates whether validation function runs asynchronously.

Function to execute validation within the container.

MMNEPVFCICPMFPCPTTAAATR