Sync / foldkit-sync/do

DocumentHostContext

interface · packages/sync/src/do.ts:81

interface DocumentHostContext {
  readonly storage?: unknown
}

The sliver of a Durable Object the host uses: state for the journal to open with, and, with server, the storage's alarm (getAlarm, setAlarm). Left unknown so openJournal can read the rest of it (the object's SQLite) as its own type.

Members

DocumentHostContext.storage

property · packages/sync/src/do.ts:82

readonly storage?: unknown