Small FE improvements
This commit is contained in:
parent
c62ec9b98b
commit
f2326b846e
1 changed files with 39 additions and 11 deletions
|
|
@ -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>;
|
||||
|
|
|
|||
Loading…
Reference in a new issue