Automerge Repo - v2.3.0-alpha.0
    Preparing search index...
    SharePolicy: (peerId: PeerId, documentId?: DocumentId) => Promise<boolean>

    A function that determines whether we should share a document with a peer

    Type declaration

    This function is called by the Repo every time a new document is created or discovered (such as when another peer starts syncing with us). If this function returns true then the Repo will begin sharing the new document with the peer given by peerId.