CustomValidationError
A custom validation error whose additional application-specific properties remain unknown.
Import
import type { CustomValidationError } from '@ngblocks/form-nodes';
When to use it
Use for unregistered custom errors. Additional data remains unknown; narrow or register the error kind before treating custom properties as concrete types.
Declaration
type CustomValidationError<TKind extends string = string> = ValidationError & Readonly<Record<string, unknown>> & {
readonly kind: TKind;
};
Type parameters
| Parameter | Constraint | Default |
|---|---|---|
TKind | string | string |