site-panzai/node_modules/http-shutdown/index.d.ts

13 lines
293 B
TypeScript
Raw Normal View History

2026-11-13 13:57:04 +01:00
// Missing type definitions
import { Server } from 'net';
export = wrapShutdown;
interface WithShutdown extends Server {
shutdown(cb: (err?: Error) => any): void;
forceShutdown(cb: (err?: Error) => any): void;
}
declare function wrapShutdown<S extends Server>(s: S): S & WithShutdown;