unexpected-error.d.ts 396 B

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