Skip to main content

ParameterizedAsyncValidatorContext

Asynchronous validator context extended with the current reactive parameter snapshot.

Import

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

When to use it

Use for the object-form async validator's execution callback. Its params are the captured request snapshot; signal reads in execution are not the parameter dependency declaration.

Declaration

type ParameterizedAsyncValidatorContext<TValue, TParams, TApi extends ValidatorReadonlyApi<TValue> = AsyncValidatorApi<TValue>, TField extends AnyNode = ValidatorNode> = AsyncValidatorContext<TValue, TApi, TField> & {
readonly params: TParams;
};

Type parameters

ParameterConstraintDefault
TValueUnconstrainedRequired
TParamsUnconstrainedRequired
TApiValidatorReadonlyApi<TValue>AsyncValidatorApi<TValue>
TFieldAnyNodeValidatorNode

Declared members

The declaration above also includes inherited contracts and overloads where applicable.

MemberMeaning
paramsSnapshot returned by the validator's reactive params function.