Small FE improvements

This commit is contained in:
Andras Schmelczer 2026-09-19 20:03:45 +01:00
commit f2326b846e

View file

@ -1,3 +1,7 @@
/** save() atomically replaces the entire value and resolves only after both the
* data and its directory entry are durable across power loss. Failed saves must
* leave either complete value readable; callers retain their recovery journal.
*/
export interface PersistenceProvider<T> {
load: () => Promise<T | undefined>;
save: (data: T) => Promise<void>;