DefinitelyTyped/types/stream-each/index.d.ts
2018-07-23 08:59:16 -07:00

13 lines
441 B
TypeScript

// Type definitions for stream-each 1.2
// Project: https://github.com/mafintosh/stream-each
// Definitions by: Daniel Cassidy <https://github.com/djcsdy>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference types="node"/>
declare function each(stream: NodeJS.ReadableStream,
iterator: (data: Buffer | string, next: (error?: Error) => void) => void,
cb: (error?: Error) => void): void;
export = each;