Skip to main content

AsyncValidatorApi

Default owner API shape used to specialize asynchronous validator contexts. The context exposes a readonly validation view; its node cannot be mutated through that view.

Import

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

When to use it

Use for the node API exposed by asynchronous validator contexts. Follow the async validation contract for cancellation and result publication.

Declaration

type AsyncValidatorApi<TValue> = ValidatorApi<TValue>;

Type parameters

ParameterConstraintDefault
TValueUnconstrainedRequired