Interface Validator<TConfig>

Describes an input validator.

interface Validator<TConfig> {
    instant?: boolean;
    name: string;
    validation(value: string, element: ValidatableHTMLElement, config: Partial<TConfig>): boolean;
}

Type Parameters

Properties

Methods

Properties

instant?: boolean

Optional instant validation

name: string

The name of the validator.

Methods