ft_transcendence/pong/node_modules/@nestjs/common/interfaces/hooks/on-destroy.interface.d.ts
2023-05-02 19:15:50 +02:00

13 lines
369 B
TypeScript

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