UNPKG

515 BTypeScriptView Raw
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
8import { Writable } from "stream";
9
10interface ConcatOpts {
11 encoding?: string | undefined;
12}
13
14declare function concat(cb: (buf: Buffer) => void): Writable;
15declare function concat(opts: ConcatOpts, cb: (buf: Buffer) => void): Writable;
16
17export = concat;