Skip to content

@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 ​

readonly entry: 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 ​

readonly ephemeral: "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 ​

readonly persisted: boolean | null

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

Whether the browser granted persistent storage; null when unknown.


problem ​

readonly problem: CodedFact<AutosaveCode> | null

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

Why the state is "failing" (or "off"), or null.


revision ​

readonly revision: number

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

The number of committed changes the last write contains.


savedAt ​

readonly savedAt: 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 ​

readonly state: "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 ​

readonly storage: { 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 ​

readonly unexported: 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.