TinyBase logoTinyBase β

PersistedChanges

The PersistedChanges type is a generic representation of changes made to the type of store being handled by a Persister.

Persist extends Persists.StoreOrMergeableStore ? Changes | MergeableChanges<Hashed> : Persist extends Persists.MergeableStoreOnly ? MergeableChanges<Hashed> : Changes

Using the values of the Persists enum, the generic parameter indicates whether the Persister is handling changes for a regular Store (the Changes type), a MergeableStore (the MergeableChanges type), or either (the union of the two).

Since

v5.0.0