Package Exports
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@types/on-finished) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
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
// Type definitions for on-finished 2.3
// Project: https://github.com/jshttp/on-finished
// Definitions by: Honza Dvorsky <https://github.com/czechboy0>
// BendingBender <https://github.com/BendingBender>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <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: Sun, 03 Sep 2023 22:33:49 GMT
- Dependencies: @types/node
- Global values: none
Credits
These definitions were written by Honza Dvorsky, and BendingBender.