UNPKG

@nestjs/common

Version:

Nest - modern, fast, powerful node.js web framework (@common)

13 lines (12 loc) 369 B
/** * Interface defining method called just before Nest destroys the host module * (`app.close()` method has been evaluated). Use to perform cleanup on * resources (e.g., Database connections). * * @see [Lifecycle Events](https://docs.nestjs.com/fundamentals/lifecycle-events) * * @publicApi */ export interface OnModuleDestroy { onModuleDestroy(): any; }