@piggly/fastify-chassis
Version:
An ESM/CommonJS toolkit to help you to do common operations in your back-end applications with Fastify and NodeJS.
19 lines (18 loc) • 609 B
text/typescript
/**
* Cleanup dependencies.
* It will run the CleanUpService to clean all registered dependencies.
*
* HTTP Server will be automatically cleaned up if it is registered in the CleanUpService.
*
* It will wait for:
* - EventBus cleanup;
* - LoggerService flush and cleanup.
*
* You may not need to cleanup classes above when using this.
*
* @deprecated Use GracefulShutdownService instead. It will be removed in the next major version.
* @returns {Promise<number>}
* @since 7.3.0
* @author Caique Araujo <caique@piggly.com.br>
*/
export declare const cleanupDependencies: () => Promise<number>;