Skip to content

WellKnownValidationTrigger

github-actions[bot] edited this page Dec 3, 2024 · 3 revisions
API / WellKnownValidationTrigger<TKey, TItem> alias

Represent a set of well-known validation triggers. These are used to simplify object validator configurations as a view model or observable collection can be directly passed as a trigger.

type WellKnownValidationTrigger<TKey = unknown, TItem = unknown>
= INotifyPropertiesChanged
| INotifyCollectionChanged<unknown>
| INotifyCollectionReordered<unknown>
| INotifySetChanged<unknown>
| INotifyMapChanged<unknown, unknown>
| [
    INotifyMapChanged<TKey, TItem> | Iterable<[TKey, TItem]>,
    ValidationTriggerSelector<TItem>
  ]
| [
    INotifyCollectionChanged<TItem> | INotifySetChanged<TItem> | Iterable<TItem>,
    ValidationTriggerSelector<TItem>
  ];

Source reference: src/validation/triggers/ValidationTrigger.ts:20.

Generic Parameters

  • TKey - The type of keys the map contains.

    Default value: unknown.

  • TItem - The type of items the collection, set, or map contains.

    Default value: unknown.

See also

Clone this wiki locally