This commit is contained in:
2026-04-07 14:50:23 +09:00
commit b4e485502b
4778 changed files with 2017091 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
/**
* Ensures a given function does not throw any errors, including unexpected ones
* outside of its chain of execution.
*
* This function can only be used once in the same process. If you have multiple
* callables needing this, compose them into a single callable.
*/
export declare function callHandlingUnexpectedErrors(callable: () => Promise<unknown>, exitCode: number): Promise<void>;