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

1.0.0 • Public • Published

Installation

npm install --save @types/gulp-flatmap

Summary

This package contains type definitions for gulp-flatmap (https://github.com/mariusGundersen/gulp-flatmap#readme).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/gulp-flatmap.

import * as File from "vinyl";

export = gulp_flatmap;

/**
 * @param func
 *
 * The flatmap method takes one argument, a function. This function is called once for each file
 * piped to flatmap and is passed a stream as its first argument and the vinyl file as its second
 * argument. The stream contains only one file.
 *
 * You can now pipe this stream through as many steps as you want, before returning it from the
 * function. All the streams returned from flatmap will be combined and their contents will be
 * emited by flatmap.
 *
 * @todo Generify if <https://github.com/DefinitelyTyped/DefinitelyTyped/issues/2134> is ever solved
 */
declare function gulp_flatmap(
    func: (stream: NodeJS.ReadableStream, file: File) => NodeJS.ReadableStream,
): NodeJS.ReadWriteStream;

Additional Details

Credits

These definitions were written by Samuel Bronson.

/@types/gulp-flatmap/

    Package Sidebar

    Install

    npm i @types/gulp-flatmap

    Weekly Downloads

    668

    Version

    1.0.0

    License

    MIT

    Unpacked Size

    4.33 kB

    Total Files

    5

    Last publish

    Collaborators

    • types