UNPKG

@nestjs/common

Version:

Decorators, pipes, exceptions and utilities for NestJS applications: @Controller(), @Injectable(), @Body(), ValidationPipe, HttpException and more.

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; }