ICollectionChangedValidationTriggerConfig - Andrei15193/react-model-view-viewmodel GitHub Wiki
API / ICollectionChangedValidationTriggerConfig<TItem, TCollection> interface
Represents the collection changed validation trigger configuration.
interface ICollectionChangedValidationTriggerConfig<TItem = unknown, TCollection extends INotifyCollectionChanged<TItem> = INotifyCollectionChanged<TItem>>
Source reference: src/validation/triggers/CollectionChangedValidationTrigger.ts:9
.
-
TItem - The type of item the collection contains.
Default value:
unknown
. -
TCollection - The collection type that may trigger validations.
Type constraints: INotifyCollectionChanged<TItem>.
Default value: INotifyCollectionChanged<TItem>.
-
readonly
collection - Gets the collection that may trigger a validation.
-
optional
shouldTriggerValidation - Optional, a guard method which controls when a validation should be triggered.