Skip to main content
Module

x/earthstar_replica_server/deps.ts>Earthstar.DocInputEs5

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

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

Properties

format: "es.5"

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

path: Path
optional
text: string

Can be left blank if there is a previous version of the document with an attachment.

optional
attachment: Uint8Array | ReadableStream<Uint8Array>

Data as Uint8Array or ReadableStream, to be used as document's associated attachment.

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.