Skip to content

IMapChangedValidationTriggerConfig

github-actions[bot] edited this page Nov 17, 2024 · 2 revisions
API / IMapChangedValidationTriggerConfig<TKey, TItem, TMap> interface

Represents the map changed validation trigger configuration.

interface IMapChangedValidationTriggerConfig<TKey = unknown, TItem = unknown, TMap extends INotifyMapChanged<TKey, TItem> = INotifyMapChanged<TKey, TItem>>

Source reference: src/validation/triggers/MapChangedValidationTrigger.ts:10.

Generic Parameters

  • TKey - The type of keys the map contains.

    Default value: unknown.

  • TItem - The type of items the map contains.

    Default value: unknown.

  • TMap - The map type that may trigger validations.

    Type constraints: INotifyMapChanged<TKey, TItem>.
    Default value: INotifyMapChanged<TKey, TItem>.

Properties

  • readonly map - Gets the map that may trigger a validation.

Methods

  • optional shouldTriggerValidation - Optional, a guard method which controls when a validation should be triggered.
Clone this wiki locally