Skip to content

@graphty/graphty-element / index / AutosaveRestored

Interface: AutosaveRestored ​

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

What an automatic restore brought back.

Properties ​

copiedFrom ​

readonly copiedFrom: string | null

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

The entry this one was copied from, when another tab was writing this tab's own entry.


entry ​

readonly entry: AutosaveEntry

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

The entry restored (a copy, when copiedFrom is set).


readonly navigationType: string | null

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

The navigation's type ("reload", "navigate", "back_forward"), or null where unknown.


others ​

readonly others: number

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

Other entries of this key holding unsaved work that no tab is writing.


pageOverrides ​

readonly pageOverrides: readonly string[]

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

The page settings that changed since the entry was written, and so were applied over it.


report ​

readonly report: ProjectOpenReport

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

The project-open report of the restore: runs that were computing come back as W_RUN_PENDING.


revision ​

readonly revision: number

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

The number of committed changes it contains.


savedAt ​

readonly savedAt: string

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

When the work was last written (ISO 8601 UTC).


wasDiscarded ​

readonly wasDiscarded: boolean | null

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

document.wasDiscarded, or null where the browser does not say.