Skip to main content

ControlStateError

A validation error normalized across supported Angular form-binding APIs.

Import

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

When to use it

Use when rendering errors obtained from useFormNodeState(). This is a source-neutral error contract rather than a guarantee of a Form Nodes target node.

Declaration

type ControlStateError = {
readonly kind: string;
readonly [property: string]: unknown;
};