Skip to content

IValidationTriggersSet.add

github-actions[bot] edited this page Dec 3, 2024 · 3 revisions
API / IValidationTriggersSet / add method

Ensures the given trigger is in the set.

add<TKey = unknown, TItem = unknown>(
  trigger: ValidationTrigger<unknown> | WellKnownValidationTrigger<TKey, TItem>
): this

Source reference: src/validation/objectValidator/IObjectValidator.ts:45.

Generic Parameters

Parameters

Returns: this

Returns the current validation trigger set.

Clone this wiki locally