Skip to main content
Module

x/earthstar/mod.ts>DocToSet

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

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

Properties

format: string

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.