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