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

3.0.4 • Public • Published

Installation

npm install --save @types/through2-map

Summary

This package contains type definitions for through2-map (https://github.com/brycebaril/through2-map).

Details

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

index.d.ts

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

import through2 = require("through2");
import stream = require("stream");

type MapCallback = (chunk: any, index: number) => void;

interface Through2MapOptions extends stream.DuplexOptions {
    wantStrings?: boolean | undefined;
}

declare function through2_map(options?: Through2MapOptions, fn?: MapCallback): through2.Through2Constructor;
declare function through2_map(fn?: MapCallback): through2.Through2Constructor;

declare namespace through2_map {
    function ctor(options?: Through2MapOptions, fn?: MapCallback): through2.Through2Constructor;
    function ctor(fn?: MapCallback): through2.Through2Constructor;

    function obj(options?: Through2MapOptions, fn?: MapCallback): through2.Through2Constructor;
    function obj(fn?: MapCallback): through2.Through2Constructor;

    function objCtor(options?: Through2MapOptions, fn?: MapCallback): through2.Through2Constructor;
    function objCtor(fn?: MapCallback): through2.Through2Constructor;
}

export = through2_map;

Additional Details

Credits

These definitions were written by Lucas Hill.

Versions

Current Tags

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 3.0.4
    146
  • 3.0.3
    0
  • 3.0.2
    0
  • 3.0.1
    815
  • 3.0.0
    4,104

Package Sidebar

Install

npm i @types/through2-map

Weekly Downloads

5,065

Version

3.0.4

License

MIT

Unpacked Size

4.76 kB

Total Files

5

Last publish

Collaborators

  • types