Cotal TypeScript packages
    Preparing search index...

    Interface JournalInit

    interface JournalInit {
        entries?: readonly JournalEntry[];
        readOnly?: boolean;
        resultBytes?: number;
        run: string;
        store?: JournalStore;
    }
    Index
    entries?: readonly JournalEntry[]
    readOnly?: boolean

    Refuse to append. A migration's dry replay must never mutate the run it is checking.

    resultBytes?: number

    The most bytes a settled ok result may canonicalize to, checked AHEAD of the append (L5006, EffectResultTooLarge). Whoever constructs the journal knows the store's limit and passes it here; omitted, no bound is enforced, which is a statement and not a default.

    run: string
    store?: JournalStore

    Where appends go to survive this process. Omitted, the journal is in-memory only.