UNPKG

stromjs

Version:

Dependency-free streams utils for Node.js

4 lines (3 loc) 259 B
/// <reference types="node" /> import { Transform, TransformOptions } from "stream"; export declare function flatMap<T, R>(mapper: ((chunk: T, encoding: string) => R[]) | ((chunk: T, encoding: string) => Promise<R[]>), options?: TransformOptions): Transform;