Latest Threat ResearchGlassWorm Loader Hits Open VSX via Developer Account Compromise.Details
Socket
Book a DemoInstallSign in
Socket

@types/through2

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/through2

TypeScript definitions for through2 v

Source
npmnpm
Version
0.4.3
Version published
Weekly downloads
222K
18.01%
Maintainers
1
Weekly downloads
 
Created
Source

Installation

npm install --save @types/through2

Summary

This package contains type definitions for through2 v (https://github.com/rvagg/through2).

Details

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

index.d.ts

// Type definitions for through2 v 0.4.2
// Project: https://github.com/rvagg/through2
// Definitions by: Bart van der Schoor <https://github.com/Bartvds>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

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

import stream = require("stream");

declare function through2(
    transform?: (chunk: any, enc: string, callback: () => void) => void,
    flush?: () => void,
): NodeJS.ReadWriteStream;

declare function through2(
    opts?: stream.DuplexOptions,
    transform?: (chunk: any, enc: string, callback: () => void) => void,
    flush?: () => void,
): NodeJS.ReadWriteStream;

declare namespace through2 {
    export function obj(
        transform?: (chunk: any, enc: string, callback: () => void) => void,
        flush?: () => void,
    ): NodeJS.ReadWriteStream;

    export function push(data: any): void;
}

export = through2;

Additional Details

  • Last updated: Tue, 12 Sep 2023 12:34:41 GMT
  • Dependencies: @types/node
  • Global values: none

Credits

These definitions were written by Bart van der Schoor.

FAQs

Package last updated on 12 Sep 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts