@graphty/graphty-element / extend / AutosaveEntryMeta
Interface: AutosaveEntryMeta ​
Defined in: graphty-element/src/autosave/types.ts:23
The meta record of one entry. id, key, gen and seq are the store's to index and maintain; every other field is opaque to the store and passed through unchanged.
Indexable ​
[
field:string]:unknown
Any other field, kept as given.
Properties ​
gen ​
readonlygen:number
Defined in: graphty-element/src/autosave/types.ts:29
Commits to this entry so far. The store sets it to expectedGen + 1 on every commit.
id ​
readonlyid:string
Defined in: graphty-element/src/autosave/types.ts:25
The entry's id.
key ​
readonlykey:string
Defined in: graphty-element/src/autosave/types.ts:27
The autosave key the entry belongs to; list(key) returns the entries of one key.
seq ​
readonlyseq:number
Defined in: graphty-element/src/autosave/types.ts:31
A per-key sequence number the store assigns inside each commit; higher is newer.