import { type Persister } from "https://deno.land/x/prevalence@0.1.2/src/persist/persister.ts";
Methods
loadJournal(): Promise<JournalEntry<M>[]>
Load the journal from the persister.
appendToJournal(journalEntry: JournalEntry<M>): Promise<Action<M>>
Append an entry to the journal.
saveModelAndClearJournal(model: M, lastAppliedTimestamp: LastAppliedTimestamp): Promise<void>
Save the model to the persister, and clear the journal, atomically.