@piggly/fastify-chassis
Version:
An ESM/CommonJS toolkit to help you to do common operations in your back-end applications with Fastify and NodeJS.
16 lines (15 loc) • 621 B
TypeScript
/**
* Process stop error.
*
* @deprecated Use GracefulShutdownService instead. It will be removed in the next major version.
* @param {Object} opts The options.
* @param {boolean} opts.debug Whether to log debug messages. Default is false.
* @param {() => Promise<number>} beforeExit
* @param {number} exitCode Used when beforeExit is not provided. Default is 0.
* @returns The callback function.
* @since 5.1.0
* @author Caique Araujo <caique@piggly.com.br>
*/
export declare const processStop: (opts?: {
debug?: boolean;
}, beforeExit?: () => Promise<number>, exitCode?: number) => () => Promise<never>;