UNPKG

369 BTypeScriptView Raw
1/**
2 * Interface defining method called just before Nest destroys the host module
3 * (`app.close()` method has been evaluated). Use to perform cleanup on
4 * resources (e.g., Database connections).
5 *
6 * @see [Lifecycle Events](https://docs.nestjs.com/fundamentals/lifecycle-events)
7 *
8 * @publicApi
9 */
10export interface OnModuleDestroy {
11 onModuleDestroy(): any;
12}