@types/server-destroy
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published

Installation

npm install --save @types/server-destroy

Summary

This package contains type definitions for server-destroy (https://github.com/isaacs/server-destroy#readme).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/server-destroy.

index.d.ts

/// <reference types="node" />

import * as net from "net";

declare module "net" {
    interface Server {
        destroy(callback?: (err?: Error) => void): void;
    }
}

declare function enableDestroy(server: net.Server): void;

export = enableDestroy;

Additional Details

  • Last updated: Tue, 07 Nov 2023 15:11:36 GMT
  • Dependencies: @types/node

Credits

These definitions were written by Gyula Szalai, and Anatoly Pitikin.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/server-destroy

Weekly Downloads

16,551

Version

1.0.3

License

MIT

Unpacked Size

3.38 kB

Total Files

5

Last publish

Collaborators

  • types