Skip to main content

Type Alias: Document

type Document = PouchDB.Core.Document<object & BaseDocumentFields>;

Defined in: packages/shared/lib/types.d.ts:199

Document-modelling types, re-exported from @docstack/shared.

These describe the values consumers have to construct themselves — most of all Patch, which StackOptions.patches asks for. @docstack/shared is an internal package, so surfacing them here is the only import path an application has.

Note that Document shadows the DOM's global Document in whichever module imports it; alias it (import type { Document as DocStackDocument }) in code that needs both.