API/api.medcify.app/node_modules/snyk/dist/lib/unexpected-error.d.ts

9 lines
396 B
TypeScript
Raw Normal View History

2022-09-26 06:11:44 +00:00
/**
* 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>;