Installation
npm install --save @types/http-terminator
Summary
This package contains type definitions for http-terminator (https://github.com/gajus/http-terminator#readme).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/http-terminator.
import { Server as HttpServer } from "http";
import { Server as HttpsServer } from "https";
export interface HttpTerminatorConfig {
gracefulTerminationTimeout?: number | undefined;
server: HttpServer | HttpsServer;
}
export interface HttpTerminator {
terminate(): Promise<void>;
}
export function createHttpTerminator(
config: HttpTerminatorConfig,
): HttpTerminator;
Additional Details
- Last updated: Tue, 07 Nov 2023 03:09:37 GMT
- Dependencies: @types/node
Credits
These definitions were written by Steve Ripberger.