assertDraftReadable
assertDraftReadable(
props):void
Defined in: packages/core/src/db/staleWrite.ts:97
Rejects a draft write or publish by a caller who may not read the document’s existing draft row — they would overwrite or promote changes they cannot see.
Parameters
Section titled “Parameters”Omit<StaleWriteReadCheckProps, "readAction">
The write’s config, access options and caller, and the draft row’s user fields.
Returns
Section titled “Returns”void
Throws
Section titled “Throws”{ code: "DRAFT_NOT_READABLE", message }.