Skip to main content
Module

x/earthstar_replica_server/deps.ts>Earthstar.IngestEventSuccess

An always-online Earthstar peer for your shares.
Latest
interface Earthstar.IngestEventSuccess
Re-export
import { type Earthstar } from "https://deno.land/x/earthstar_replica_server@4.0.0-beta.1/deps.ts";
const { IngestEventSuccess } = Earthstar;

Type Parameters

DocType extends DocBase<string>

Properties

kind: "success"
maxLocalIndex: number
doc: DocType
docIsLatest: boolean

Whether the doc is the latest at this path for any author.

prevDocFromSameAuthor: DocType | null

The most recent doc from the same author, at this path, before the new doc was written.

prevLatestDoc: DocType | null

the latest doc from any author at this path, before the new doc was written. note this is actually still the latest doc if the just-written doc is an older one (docIsLatest===false)

sourceId: "local" | string

An ID representing the source of this ingestion. 'local' means the doc was created locally.