API/api.medcify.app/node_modules/snyk/dist/lib/unexpected-error.d.ts
2022-09-26 11:41:44 +05:30

9 lines
396 B
TypeScript

/**
* 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>;