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
| Parameter | Constraint | Default |
|---|---|---|
TValue | Unconstrained | Required |
TApi | ValidatorReadonlyApi<TValue> | AsyncValidatorApi<TValue> |
TField | AnyNode | ValidatorNode |