UNPKG

1.05 kBMarkdownView Raw
1# Installation
2> `npm install --save @types/through`
3
4# Summary
5This package contains type definitions for through (https://github.com/dominictarr/through).
6
7# Details
8Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/through.
9## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/through/index.d.ts)
10````ts
11/// <reference types="node" />
12
13import stream = require("stream");
14
15declare function through(
16 write?: (data: any) => void,
17 end?: () => void,
18 opts?: {
19 autoDestroy: boolean;
20 },
21): through.ThroughStream;
22
23declare namespace through {
24 export interface ThroughStream extends stream.Transform {
25 autoDestroy: boolean;
26 queue: (chunk: any) => any;
27 }
28}
29
30export = through;
31
32````
33
34### Additional Details
35 * Last updated: Tue, 07 Nov 2023 15:11:36 GMT
36 * Dependencies: [@types/node](https://npmjs.com/package/@types/node)
37
38# Credits
39These definitions were written by [Andrew Gaspar](https://github.com/AndrewGaspar).
40
\No newline at end of file