Repositorio del curso CCOM4030 el semestre B91 del proyecto Artesanías con el Instituto de Cultura

1234567891011121314151617181920212223242526
  1. declare const loudRejection: {
  2. /**
  3. Make unhandled promise rejections fail loudly instead of the default [silent fail](https://gist.github.com/benjamingr/0237932cee84712951a2).
  4. @param log - Custom logging function to print the rejected promise. Receives the error stack. Default: `console.error`.
  5. @example
  6. ```
  7. import loudRejection = require('loud-rejection');
  8. import promiseFunction = require('promise-fn');
  9. // Install the `unhandledRejection` listeners
  10. loudRejection();
  11. promiseFunction();
  12. ```
  13. */
  14. (log?: (stack: string) => void): void;
  15. // TODO: remove this in the next major version, refactor the whole definition to:
  16. // declare function loudRejection(log?: (stack: string) => void): void;
  17. // export = loudRejection;
  18. default: typeof loudRejection;
  19. };
  20. export = loudRejection;