Skip to content

DocumentEngine

All history methods include rejected outcomes. Verification checks the complete hash chain.

E extends EditEnvelope

apply(record): boolean

Confirmation<E>

boolean


applyBatch(records): boolean

Applies the valid prefix and publishes its projection once, including on failure.

readonly Confirmation<E>[]

boolean


checkpoint(): Checkpoint

Checkpoint


exportHistory(from): readonly Confirmation<E>[] | undefined

Checkpoint

readonly Confirmation<E>[] | undefined


install(history, recovered?): void

readonly Confirmation<E>[]

readonly E[]

void


outcome(id): Outcome | undefined

EditId

Outcome | undefined


sequence(edit, rejection?): Confirmation<E>

E

string

Confirmation<E>


sequenceBatch(edits): readonly Confirmation<E>[]

readonly object[]

readonly Confirmation<E>[]


uniquePending(history): readonly E[]

readonly Confirmation<E>[]

readonly E[]


verify(history, tip): boolean

readonly Confirmation<E>[]

Checkpoint

boolean