@paroicms/server
Version:
The ParoiCMS server
8 lines (7 loc) • 349 B
TypeScript
import type { PlatformLog } from "@paroicms/internal-server-lib";
export declare function isShuttingDown(): boolean;
export interface HandleShutdownEventsOptions {
logger: PlatformLog;
closingTasks?: (() => Promise<void> | void)[];
}
export declare function handleShutdownEvents({ logger, closingTasks }: HandleShutdownEventsOptions): void;