Skip to main content

Type Alias: DocumentWriter

DocumentWriter = (route, version) => void | Promise<void>

Defined in: config.types.ts:35

Where an edited document goes. document in the other direction, and optional for the same reason document is a function: the consumer owns where a document lives, and one who only publishes fixtures never writes one back. Absent, the editing commands refuse and name it.

Parameters

route

string

version

DocumentVersion

Returns

void | Promise<void>