mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
* Typings for server-destroy npm package * Fix indentation of server-destroy typings * Fix tsconfig of server-destroy typings
18 lines
481 B
TypeScript
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;
|