Interface IValueValidation<T>

Interface representing a value validation with an optional message.

interface IValueValidation<T> {
    message?: string;
    value: T;
}

Type Parameters

  • T

Properties

Properties

message?: string

Optional message to be displayed if validation fails.

value: T

The value to be validated.