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

2.3.4 • Public • Published

Installation

npm install --save @types/on-finished

Summary

This package contains type definitions for on-finished (https://github.com/jshttp/on-finished).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/on-finished.

index.d.ts

/// <reference types="node" />
import { IncomingMessage, OutgoingMessage } from "http";

export = onFinished;

declare function onFinished<T extends IncomingMessage | OutgoingMessage>(
    msg: T,
    listener: (err: Error | null, msg: T) => void,
): T;

declare namespace onFinished {
    function isFinished(msg: IncomingMessage | OutgoingMessage): boolean;
}

Additional Details

  • Last updated: Tue, 07 Nov 2023 09:09:39 GMT
  • Dependencies: @types/node

Credits

These definitions were written by Honza Dvorsky, and BendingBender.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/on-finished

Weekly Downloads

560,115

Version

2.3.4

License

MIT

Unpacked Size

3.57 kB

Total Files

5

Last publish

Collaborators

  • types