@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 ​
readonlyexpectedGen: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 ​
readonlyid:string
Defined in: graphty-element/src/autosave/types.ts:39
The entry's id.
meta ​
readonlymeta:AutosaveEntryMeta
Defined in: graphty-element/src/autosave/types.ts:43
The entry's meta. The store replaces its gen and seq.
parts ​
readonlyparts: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.