@graphty/graphty-element / index / AutosaveStatus
Interface: AutosaveStatus ​
Defined in: graphty-element/src/autosave/types.ts:165
Where autosave stands: a neutral fact, worded by the application.
Properties ​
entry ​
readonlyentry:string|null
Defined in: graphty-element/src/autosave/types.ts:177
The id of the entry this element writes, or null before its first write.
ephemeral ​
readonlyephemeral:"unknown"|"likely"
Defined in: graphty-element/src/autosave/types.ts:194
"likely" when the storage is probably deleted with the window: a Safari or Firefox private window, or another site's frame. Never inferred from the quota, so Chrome's Incognito is "unknown".
persisted ​
readonlypersisted:boolean|null
Defined in: graphty-element/src/autosave/types.ts:181
Whether the browser granted persistent storage; null when unknown.
problem ​
readonlyproblem:CodedFact<AutosaveCode> |null
Defined in: graphty-element/src/autosave/types.ts:196
Why the state is "failing" (or "off"), or null.
revision ​
readonlyrevision:number
Defined in: graphty-element/src/autosave/types.ts:175
The number of committed changes the last write contains.
savedAt ​
readonlysavedAt:string|null
Defined in: graphty-element/src/autosave/types.ts:173
When the last write committed (ISO 8601 UTC), or null before the first.
state ​
readonlystate:"pending"|"off"|"saved"|"failing"
Defined in: graphty-element/src/autosave/types.ts:171
"off": not saving. "saved": everything is committed. "pending": a change or a write is outstanding. "failing": the last write failed; problem says why, and the next change tries again.
storage ​
readonlystorage: {bytes:number;entries:number;quota:number;usage:number; } |null
Defined in: graphty-element/src/autosave/types.ts:183
Storage use, where the browser reports it; entries and bytes are this key's.
unexported ​
readonlyunexported:boolean
Defined in: graphty-element/src/autosave/types.ts:179
Whether there is work that was never saved to a file: the same as project.dirty.