Skip to main content

AsyncValidatorBaseContext

Reactive context shared by asynchronous validator conditions, params, and handlers.

Import

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

When to use it

Use for shared async conditions, parameter derivation, and failure handlers. The execution callback adds cancellation and, in parameterized mode, the params snapshot.

Declaration

type AsyncValidatorBaseContext<TValue, TApi extends ValidatorReadonlyApi<TValue> = AsyncValidatorApi<TValue>, TField extends AnyNode = ValidatorNode> = ValidatorContext<TValue, TApi, TField>;

Type parameters

ParameterConstraintDefault
TValueUnconstrainedRequired
TApiValidatorReadonlyApi<TValue>AsyncValidatorApi<TValue>
TFieldAnyNodeValidatorNode