Files
discord-clone/node_modules/http-shutdown/index.d.ts
2023-01-03 09:29:04 -06:00

13 lines
293 B
TypeScript

// 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;