Skip to content

preferSource

function preferSource(order): ConflictStrategy;

Defined in: ledger-conflict.ts:206

Keep the record whose source ranks earliest in order (a deterministic authority list, e.g. ['server', 'clientA', 'clientB']). Sources absent from the list rank last; genuine ties fall back to chronological order.

ParameterType
orderreadonly string[]

ConflictStrategy