Files
NapCatQQ/.pnpm-store/v3/files/81/0407fc5364fda77dae5c68861a9132e6edcd157a6987df7c68f7e87b952cc25e28c8fe5d28a4a5cb946308cfb8963fb550038effb8ff04c964ea31c79f15e5
T
TanTan e311ca3275
Build NapCat Artifacts / Type Check & Test (push) Waiting to run
docs: 仓库链接指向本镜像仓库
2026-11-13 09:25:58 +08:00

33 lines
1.1 KiB
Plaintext

# 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](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/on-finished/index.d.ts)
````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: Sat, 07 Jun 2025 02:15:25 GMT
* Dependencies: [@types/node](https://npmjs.com/package/@types/node)
# Credits
These definitions were written by [Honza Dvorsky](https://github.com/czechboy0), [BendingBender](https://github.com/BendingBender), and [Sebastian Beltran](https://github.com/bjohansebas).