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

x/earthstar/src/formats/format_es4.ts>DocInputEs4

Earthstar is a tool for private, undiscoverable, offline-first networks.
Go to Latest
interface DocInputEs4
implements DocInputBase<"es.4">
import { type DocInputEs4 } from "https://deno.land/x/earthstar@v10.0.0-beta.7/src/formats/format_es4.ts";

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.