platform/updates/boot-state
Classes
Section titled “Classes”JsonBootStateStore
Section titled “JsonBootStateStore”Defined in: app/src/platform/updates/boot-state.ts:6
Keeps the boot state in boot-state.json, written atomically.
Implements
Section titled “Implements”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new JsonBootStateStore(
path):JsonBootStateStore
Defined in: app/src/platform/updates/boot-state.ts:10
Parameters
Section titled “Parameters”string
The state file.
Returns
Section titled “Returns”Methods
Section titled “Methods”read()
Section titled “read()”read():
BootState
Defined in: app/src/platform/updates/boot-state.ts:14
Returns the stored state, or an empty state when none is stored.
Returns
Section titled “Returns”Implementation of
Section titled “Implementation of”write()
Section titled “write()”write(
state):void
Defined in: app/src/platform/updates/boot-state.ts:23
Replaces the stored state.
Parameters
Section titled “Parameters”The new state.
Returns
Section titled “Returns”void