ConflictResolver

typealias ConflictResolver = (conflict: Conflict) -> Document?(source)

Custom conflict resolution strategies implement this interface.

Callback: called when there are conflicting changes in the local and remote versions of a document during replication.

Return

the resolved doc.

Parameters

conflict

Description of the conflicting documents.