View as Markdown

API reference: @salmonui/data-grid/engine/validation

ValidationMessageTexttype

import type { ValidationMessageText } from '@salmonui/data-grid/engine/validation';
type ValidationMessageText = {
    readonly [K in keyof ValidationMessages]: K extends 'minLength' | 'maxLength' | 'rangeLength' ? LocaleMessage : string;
};

Message overrides: ValidationMessages whose length messages may also be plural forms. The form is chosen for the last rule argument, the number next to the counted noun: {0} of minLength and maxLength, {1} (the upper bound) of rangeLength.

ValidationMessageText members (17, 17 inherited)
NameSignatureDescription
requiredinheritedrequired: string;
mininheritedmin: string;
maxinheritedmax: string;
rangeinheritedrange: string;
minLengthinheritedminLength: LocaleMessage;
maxLengthinheritedmaxLength: LocaleMessage;
rangeLengthinheritedrangeLength: LocaleMessage;
numberinheritednumber: string;
digitsinheriteddigits: string;
emailinheritedemail: string;
urlinheritedurl: string;
dateinheriteddate: string;
dateIsoinheriteddateIso: string;
creditcardinheritedcreditcard: string;
telinheritedtel: string;
patterninheritedpattern: string;
validateinheritedvalidate: string;