mirror of
https://github.com/morluto/rea.git
synced 2026-11-15 19:23:24 +00:00
14 lines
545 B
TypeScript
14 lines
545 B
TypeScript
/** Attempt every independent cleanup and preserve each failure. */
|
|
export function closeVerifierResources(
|
|
tasks: readonly (() => void | Promise<void>)[],
|
|
): Promise<void>;
|
|
|
|
/** Finish one operation and its cleanup without losing either failure. */
|
|
export function withVerifierCleanup<T>(
|
|
operation: () => T | Promise<T>,
|
|
cleanupTasks: readonly (() => void | Promise<void>)[],
|
|
): Promise<T>;
|
|
|
|
/** The leaf reasons of a verifier failure, through nested AggregateErrors. */
|
|
export function verifierFailureReasons(cause: unknown): string[];
|