DefinitelyTyped/types/server-destroy/index.d.ts
Gyula Szalai 7769c99d01 Type definitions for the server-destroy npm package (#19452)
* Typings for server-destroy npm package

* Fix indentation of server-destroy typings

* Fix tsconfig of server-destroy typings
2017-08-30 17:07:58 -07:00

18 lines
481 B
TypeScript

// Type definitions for server-destroy 1.0
// Project: https://github.com/isaacs/server-destroy#readme
// Definitions by: Gyula Szalai <https://github.com/gyszalai>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference types="node" />
import * as http from "http";
declare module "http" {
interface Server {
destroy(callback?: () => void): void;
}
}
declare function enableDestroy(server: http.Server): void;
export = enableDestroy;