Skip to main content
Module

x/earthstar/mod.browser.ts>Doc

A specification and Javascript library for building online tools you can truly call your own.
Go to Latest
interface Doc
Re-export
import { type Doc } from "https://deno.land/x/earthstar@v9.3.3/mod.browser.ts";

Contains data written and signed by an identity.

Properties

format: string

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