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

x/earthstar/src/entries/npm.ts>DocEs4

Storage for private, distributed, offline-first applications.
Go to Latest
interface DocEs4
implements DocBase<"es.4">
import { type DocEs4 } from "https://deno.land/x/earthstar@v10.2.0/src/entries/npm.ts";

Contains data written and signed by an identity.

Properties

format: "es.4"

Which document format the doc adheres to, e.g. es.4.

content: string
contentHash: string
deleteAfter: number | null

When the document should be deleted, as a UNIX timestamp in microseconds.

path: Path
signature: Signature

Used to verify the authorship of the document.

timestamp: Timestamp

When the document was written, as a UNIX timestamp in microseconds (millionths of a second, e.g. Date.now() * 1000).

workspace: ShareAddress

The share this document is from. Shares were previously called workspaces, but we didn't want to break compatibility with previous versions by renaming this field.

optional
_localIndex: LocalIndex