Skip to content

@graphty/graphty-element / extend / AutosaveWrite

Interface: AutosaveWrite ​

Defined in: graphty-element/src/autosave/types.ts:37

One entry's share of a commit.

Properties ​

expectedGen ​

readonly expectedGen: number

Defined in: graphty-element/src/autosave/types.ts:41

The gen the writer last saw for this entry: 0 for a new entry. A mismatch rejects the commit.


id ​

readonly id: string

Defined in: graphty-element/src/autosave/types.ts:39

The entry's id.


meta ​

readonly meta: AutosaveEntryMeta

Defined in: graphty-element/src/autosave/types.ts:43

The entry's meta. The store replaces its gen and seq.


parts ​

readonly parts: Readonly<Record<string, string | Uint8Array | null>>

Defined in: graphty-element/src/autosave/types.ts:45

The parts to store; null removes a part. Parts not named here are kept.