Skip to main content

ValidationError

A validation error produced by a validator.

Import

import type { ValidationError } from '@ngblocks/form-nodes';

When to use it

Use for the base error category and optional human-readable message. Prefer a targeted error type when consuming a node's error collection.

Declaration

interface ValidationError {
readonly kind: string;
readonly message?: string;
}

Declared members

The declaration above also includes inherited contracts and overloads where applicable.

MemberMeaning
kindIdentifies the error category.
messageOptional human-readable description of the error.