UNPKG

314 BTypeScriptView Raw
1/**
2 * Interface defining method to respond to system signals (when application gets
3 * shutdown by, e.g., SIGTERM)
4 *
5 * @see [Lifecycle Events](https://docs.nestjs.com/fundamentals/lifecycle-events)
6 *
7 * @publicApi
8 */
9export interface OnApplicationShutdown {
10 onApplicationShutdown(signal?: string): any;
11}