@types/through

TypeScript definitions for through

  • Types
  • ESM
  • CJS
License
MIT
Install Size
3.4 kB(2.5 MB)
Vulns
0
Published

Get started

$npm install @types/through
$pnpm add @types/through
$yarn add @types/through
$bun add @types/through
$deno add npm:@types/through
$vlt install @types/through
$vp add @types/through
# Usually installed as a dev dependency
$npm install -D @types/through
$pnpm add -D @types/through
$yarn add -D @types/through
$bun add -d @types/through
$deno add -D npm:@types/through
$vlt install -D @types/through
$vp add -D @types/through

Weekly DownloadsAcross all versions

Versions

View all versions
0.0.33
latestts4.5ts4.6ts4.7ts4.8ts4.9ts5.0ts5.1ts5.2ts5.3ts5.4ts5.5ts5.6ts5.7ts5.8ts5.9ts6.0
0.0.31
ts4.3ts4.4
0.0.30
ts2.8ts2.9ts3.0ts3.1ts3.2ts3.3ts3.4ts3.5ts3.6ts3.7ts3.8ts3.9ts4.0ts4.1ts4.2
0.0.29
ts2.0ts2.1ts2.2ts2.3ts2.4ts2.5ts2.6ts2.7

Readme

Installation

npm install --save @types/through

Summary

This package contains type definitions for through (https://github.com/dominictarr/through).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/through.

index.d.ts

/// <reference types="node" />

import stream = require("stream");

declare function through(
    write?: (data: any) => void,
    end?: () => void,
    opts?: {
        autoDestroy: boolean;
    },
): through.ThroughStream;

declare namespace through {
    export interface ThroughStream extends stream.Transform {
        autoDestroy: boolean;
        queue: (chunk: any) => any;
    }
}

export = through;
Additional Details
  • Last updated: Tue, 07 Nov 2023 15:11:36 GMT
  • Dependencies: @types/node

Credits

These definitions were written by Andrew Gaspar.