1 | # Installation
|
2 | > `npm install --save @types/through`
|
3 |
|
4 | # Summary
|
5 | This package contains type definitions for through (https://github.com/dominictarr/through).
|
6 |
|
7 | # Details
|
8 | Files 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 |
|
13 | import stream = require("stream");
|
14 |
|
15 | declare function through(
|
16 | write?: (data: any) => void,
|
17 | end?: () => void,
|
18 | opts?: {
|
19 | autoDestroy: boolean;
|
20 | },
|
21 | ): through.ThroughStream;
|
22 |
|
23 | declare namespace through {
|
24 | export interface ThroughStream extends stream.Transform {
|
25 | autoDestroy: boolean;
|
26 | queue: (chunk: any) => any;
|
27 | }
|
28 | }
|
29 |
|
30 | export = 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
|
39 | These definitions were written by [Andrew Gaspar](https://github.com/AndrewGaspar).
|
40 |
|
\ | No newline at end of file |