@lmzhen/dsh-evolution-state-storage 0.3.21 → 0.3.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/types/index.d.ts +5 -3
- package/package.json +1 -1
package/lib/types/index.d.ts
CHANGED
|
@@ -76,9 +76,11 @@ export interface EvolutionStateStorage {
|
|
|
76
76
|
/**
|
|
77
77
|
* Atomically read-modify-write the curator-state record (S5.5): `task`
|
|
78
78
|
* receives the current record (or null when none exists) and returns the
|
|
79
|
-
* next record
|
|
80
|
-
*
|
|
81
|
-
*
|
|
79
|
+
* next record; returning null keeps the current record unchanged (the
|
|
80
|
+
* domain update primitive cannot delete, and json aligns with it). The
|
|
81
|
+
* whole read → transform → write runs inside one provider transact, so a
|
|
82
|
+
* setPaused racing the run-core bookkeeping write can never interleave a
|
|
83
|
+
* stale load with a newer save.
|
|
82
84
|
*/
|
|
83
85
|
transactCuratorState(task: (current: CuratorStateRecord | null) => CuratorStateRecord | null): Promise<void>;
|
|
84
86
|
listPending(status?: PendingStatus): Promise<PendingRecord[]>;
|