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.
| Name | Signature | Description |
|---|---|---|
requiredinherited | required: string; | |
mininherited | min: string; | |
maxinherited | max: string; | |
rangeinherited | range: string; | |
minLengthinherited | minLength: LocaleMessage; | |
maxLengthinherited | maxLength: LocaleMessage; | |
rangeLengthinherited | rangeLength: LocaleMessage; | |
numberinherited | number: string; | |
digitsinherited | digits: string; | |
emailinherited | email: string; | |
urlinherited | url: string; | |
dateinherited | date: string; | |
dateIsoinherited | dateIso: string; | |
creditcardinherited | creditcard: string; | |
telinherited | tel: string; | |
patterninherited | pattern: string; | |
validateinherited | validate: string; |