Sha256: 7d16e92952614a58672f8d4b22dabbe44b38ebcf045543db9ecb30f92e22e9bb

Contents?: true

Size: 601 Bytes

Versions: 24

Compression:

Stored size: 601 Bytes

Contents

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;

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
trusty-cms-6.3.1 node_modules/hard-rejection/index.d.ts
trusty-cms-5.0.7 node_modules/hard-rejection/index.d.ts
trusty-cms-5.0.6 node_modules/hard-rejection/index.d.ts
trusty-cms-5.0.5 node_modules/hard-rejection/index.d.ts
trusty-cms-5.0.4 node_modules/hard-rejection/index.d.ts
trusty-cms-5.0.3 node_modules/hard-rejection/index.d.ts
trusty-cms-5.0.2 node_modules/hard-rejection/index.d.ts
trusty-cms-5.0.1 node_modules/hard-rejection/index.d.ts
trusty-cms-4.3.5 node_modules/hard-rejection/index.d.ts
trusty-cms-5.0.0 node_modules/hard-rejection/index.d.ts
trusty-cms-4.3.4 node_modules/hard-rejection/index.d.ts
trusty-cms-4.3.3 node_modules/hard-rejection/index.d.ts
trusty-cms-4.3.2 node_modules/hard-rejection/index.d.ts
trusty-cms-4.3.1 node_modules/hard-rejection/index.d.ts
trusty-cms-4.3 node_modules/hard-rejection/index.d.ts
trusty-cms-4.2.3 node_modules/hard-rejection/index.d.ts
trusty-cms-4.2.2 node_modules/hard-rejection/index.d.ts
trusty-cms-4.2.1 node_modules/hard-rejection/index.d.ts
trusty-cms-4.2 node_modules/hard-rejection/index.d.ts
trusty-cms-4.1.9 node_modules/hard-rejection/index.d.ts