Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/earthstar/src/entries/universal.ts>IngestEventSuccess

Storage for private, distributed, offline-first applications.
Go to Latest
interface IngestEventSuccess
Re-export
import { type IngestEventSuccess } from "https://deno.land/x/earthstar@v10.2.0/src/entries/universal.ts";

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.