Skip to content
Sheetwrite

@sheetwrite/core/history

HistoryPublishRequestinterface

Report a problem

On this page

Atomically publish immutable records and a new head or version marker.

Members

Properties

kind: "publish";

Always "publish".

expectedGeneration: number;

Generation the writer read; refuse the call when storage is at another one.

head?: HistoryHead;

optional

The new head, when the call moves it.

version?: HistoryVersion;

optional

A new version marker, when the call adds one.

documentId: string;

ID of the document whose history the call is about.

limits: Readonly<HistoryLimits>;

The archive's limits; the adapter must refuse work that goes over them.

signal?: AbortSignal;

optional

Aborts when the archive stops waiting for the call.

Declaration

View full TypeScript declaration
export interface HistoryPublishRequest {
kind: "publish";
expectedGeneration: number;
records: readonly HistoryStoredRecord[];
head?: HistoryHead;
version?: HistoryVersion;
documentId: string;
limits: Readonly<HistoryLimits>;
signal?: AbortSignal;
}

Referenced by

Public exports naming HistoryPublishRequest