View as Markdown

API reference: @salmonui/editors/inline-edit

InlineEditValidatortype

import type { InlineEditValidator } from '@salmonui/editors/inline-edit';
type InlineEditValidator<T> = (value: T) => string | boolean | null | undefined | PromiseLike<string | boolean | null | undefined>;

Custom validator of validation.validate: an error message, or null / undefined / true when valid (false uses the default message). May be async.