@couchbase/lite-js
    Preparing search index...

    Type Alias ConflictHandler<D>

    ConflictHandler: (
        doc: CBLDocument<D>,
        conflictingDoc?: CBLDocument<D>,
    ) => ConflictHandlerResult

    A callback that resolves conflicts that arise while saving or deleting a CBLDocument, if another revision has been saved since the document was loaded. The callback can examine body revisions and make changes to doc if desired, then return 'replace' to proceed; or by returning 'revert' it can leave the existing revision in place; or by returning 'fail' it can cause a ConflictError to be thrown.

    Type Parameters

    Type Declaration