HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux spn-python 5.15.0-89-generic #99-Ubuntu SMP Mon Oct 30 20:42:41 UTC 2023 x86_64
User: arjun (1000)
PHP: 8.1.2-1ubuntu2.20
Disabled: NONE
Upload Files
File: //home/arjun/projects/buyercall/node_modules/hard-rejection/index.d.ts
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;