augmenttoolkit / node_modules /@nestjs /common /interfaces /hooks /on-destroy.interface.d.ts
Leon4gr45's picture
Include updated package-lock.json (part 9)
cd6720a verified
Raw
History Blame Contribute Delete
369 Bytes
/**
* 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;
}