Skip to main content

ValidationErrorWithoutTargetNode

An error returned by a field validator before its target node is assigned.

Import

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

When to use it

Use when returning a rule error for the current node and letting the pipeline assign ownership. Use a targeted contract only when intentionally redirecting the error.

Declaration

type ValidationErrorWithoutTargetNode = ValidationError & {
readonly targetNode?: never;
readonly formNode?: never;
};