migratingSnapshotAdapter
migratingSnapshotAdapter<
S>(chain,opts?):SnapshotAdapter<S,unknown>
Defined in: src/persistence/migration/migratingAdapter.ts:59
Same as migratingAdapter but returns a SnapshotAdapter
— useful when the same MigrationChain governs both events and the
snapshot of derived state. Snapshots usually don’t need a rolling
writeVersion (snapshots are produced by one writer, the actor),
but the helper is symmetric for the user’s convenience.
Type Parameters
Section titled “Type Parameters”S
Parameters
Section titled “Parameters”writeVersion?
Section titled “writeVersion?”number
Returns
Section titled “Returns”SnapshotAdapter<S, unknown>