TinyBase logoTinyBase β

PersistedContent

The PersistedContent type is a generic representation of the content in the type of store being handled by a Persister.

Persist extends Persists.StoreOrMergeableStore ? Content | MergeableContent : Persist extends Persists.MergeableStoreOnly ? MergeableContent : Content

Using the values of the Persists enum, the generic parameter indicates whether the Persister is handling content from a regular Store (the Content type), a MergeableStore (the MergeableContent type), or either (the union of the two).

If the generic parameter is unspecified, the StoreOnly enum value is used, meaning that PersistedContent is equivalent to the Content type.

Since

v5.0.0