Skip to main content
Module

x/earthstar_replica_server/deps.ts>Earthstar.DocInputEs4

An always-online Earthstar peer for your shares.
Latest
interface Earthstar.DocInputEs4
implements DocInputBase<"es.4">
import { type Earthstar } from "https://deno.land/x/earthstar_replica_server@4.0.0-beta.1/deps.ts";
const { DocInputEs4 } = Earthstar;

A partial es.4 doc that is about to get written. The rest of the properties will be computed automatically.

Properties

format: "es.4"

The format the document adheres to, e.g. es.4

path: Path
content: string
optional
timestamp: number

A UNIX timestamp in microseconds indicating when the document was written. Determined automatically if omitted.

optional
deleteAfter: number | null

A UNIX timestamp in microseconds indicating when the document should be deleted by.