Skip to main content

BuiltInValidationError

Union of every validation error provided by the library.

Import​

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

When to use it​

Use when a contract accepts only library-provided error kinds. Narrow by kind before reading kind-specific data such as bounds or duplicate indexes.

Declaration​

type BuiltInValidationError = BuiltInValidationErrorMap[keyof BuiltInValidationErrorMap];