@punica/editor 1.28.3 → 1.29.0
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/package.json
CHANGED
|
@@ -225,6 +225,21 @@ declare module 'punica' {
|
|
|
225
225
|
* the time range; `limit` keeps the tail-most N matches.
|
|
226
226
|
*/
|
|
227
227
|
replay(opts: EventReplayOptions): Promise<EventReplayResult>;
|
|
228
|
+
|
|
229
|
+
/**
|
|
230
|
+
* Write every queued event to the store now; resolves when the
|
|
231
|
+
* write has finished.
|
|
232
|
+
*
|
|
233
|
+
* Persistence is batched (ten events or five seconds), which is
|
|
234
|
+
* right for a session and wrong for a process about to exit. A
|
|
235
|
+
* one-shot CLI command or a headless server on SIGINT calls this
|
|
236
|
+
* so its own audit records reach disk. Idempotent; a no-op when
|
|
237
|
+
* the queue is empty.
|
|
238
|
+
*
|
|
239
|
+
* Optional so a host or test double implementing `EventsApi`
|
|
240
|
+
* against an older substrate still type-checks.
|
|
241
|
+
*/
|
|
242
|
+
flush?(): Promise<void>;
|
|
228
243
|
}
|
|
229
244
|
|
|
230
245
|
/**
|