1 | // Type definitions for concat-stream 1.6
|
2 | // Project: https://github.com/maxogden/concat-stream
|
3 | // Definitions by: Joey Marianer <https://github.com/jmarianer>
|
4 | // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
5 |
|
6 | /// <reference types="node" />
|
7 |
|
8 | import { Writable } from "stream";
|
9 |
|
10 | interface ConcatOpts {
|
11 | encoding?: string | undefined;
|
12 | }
|
13 |
|
14 | declare function concat(cb: (buf: Buffer) => void): Writable;
|
15 | declare function concat(opts: ConcatOpts, cb: (buf: Buffer) => void): Writable;
|
16 |
|
17 | export = concat;
|