@nestjs/common
Version:
Decorators, pipes, exceptions and utilities for NestJS applications: @Controller(), @Injectable(), @Body(), ValidationPipe, HttpException and more.
12 lines (11 loc) • 314 B
TypeScript
/**
* Interface defining method to respond to system signals (when application gets
* shutdown by, e.g., SIGTERM)
*
* @see [Lifecycle Events](https://docs.nestjs.com/fundamentals/lifecycle-events)
*
* @publicApi
*/
export interface OnApplicationShutdown {
onApplicationShutdown(signal?: string): any;
}