@types/through
TypeScript icon, indicating that this package has built-in type declarations

0.0.33 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/through

Weekly Downloads

3,079,864

Version

0.0.33

License

MIT

Unpacked Size

3.43 kB

Total Files

5

Last publish

Collaborators

  • types