IVersionStorage

9 Jul 20261 minute to read

Storage backend contract. The BlockEditor library is storage-agnostic;
implement this interface to persist snapshots wherever needed.

Methods

clearAll

Remove all snapshots from storage.

Returns Promise

deleteSnapshot

Permanently remove a snapshot by id.

Returns Promise

loadAllSnapshots

Load all persisted snapshots, ordered by timestamp ascending.

Returns Promise

loadSnapshot

Load a single snapshot by id.

Returns Promise

saveSnapshot

Persist a snapshot.

Returns Promise