UNPKG

@sigiljs/sigil

Version:

TypeScript-first Node.js HTTP framework offering schema-driven routing, modifier-based middleware, plugin extensibility, and flexible response templating

9 lines (8 loc) 267 B
import { Server } from 'http'; interface ShutdownOptions { server: Server; cleanup: () => Promise<void> | void; timeoutMs: number; } export default function setupGracefulShutdown({ server, cleanup, timeoutMs }: Partial<ShutdownOptions>): void; export {};