@nestjs/common
Version:
Nest - modern, fast, powerful node.js web framework (@common)
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;
}