Installation
npm install --save @types/stoppable
Summary
This package contains type definitions for stoppable (https://github.com/hunterloftis/stoppable).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/stoppable.
import * as http from "http";
import * as https from "https";
declare namespace stoppable {
type StoppableServer = http.Server & WithStop;
interface WithStop {
stop(callback?: (e: Error | undefined, gracefully: boolean) => any): void;
}
}
declare function stoppable<T extends http.Server | https.Server>(server: T, grace?: number): T & stoppable.WithStop;
export = stoppable;
Additional Details
- Last updated: Mon, 31 May 2021 17:01:23 GMT
- Dependencies: @types/node
- Global values: none
Credits
These definitions were written by Eric Byers, John Plusjé, and BendingBender.