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

12 lines
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;
}