UNPKG

stromjs

Version:

Dependency-free streams utils for Node.js

4 lines (3 loc) 266 B
/// <reference types="node" /> import { Transform, TransformOptions } from "stream"; export declare function filter<T>(predicate: ((chunk: T, encoding: string) => boolean) | ((chunk: T, encoding: string) => Promise<boolean>), options?: TransformOptions): Transform;