Skip to content

IMapItemValidationTriggerConfig.shouldTriggerValidation

github-actions[bot] edited this page Nov 17, 2024 · 2 revisions
API / IMapItemValidationTriggerConfig<TKey, TItem> / shouldTriggerValidation method

Optional, a guard method which controls when a validation should be triggered.

shouldTriggerValidation(
  item: TItem
): boolean

Source reference: src/validation/triggers/MapItemValidationTrigger.ts:32.

Parameters

  • item: TItem
    The item that changed which may trigger a validation.

Returns: boolean

Clone this wiki locally