File: index.d.ts

package info (click to toggle)
node-meow 8.0.0%2B~cs3.21.0-5
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 2,296 kB
  • sloc: javascript: 1,350; makefile: 2
file content (15 lines) | stat: -rw-r--r-- 601 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
declare const hardRejection: {
	/**
	Make unhandled promise rejections fail hard right away instead of the default [silent fail](https://gist.github.com/benjamingr/0237932cee84712951a2).

	@param log - Custom logging function to print the rejected promise. Receives the error stack. Default: `console.error`.
	*/
	(log?: (stack?: string) => void): void;

	// TODO: Remove this for the next major release, refactor the whole definition to:
	// declare function hardRejection(log?: (stack?: string) => void): void;
	// export = hardRejection;
	default: typeof hardRejection;
};

export = hardRejection;