Add batch-stream definitions

This commit is contained in:
Nicholas Penree
2015-07-20 16:16:29 -04:00
parent 99942cab14
commit 2474e8f0ac
2 changed files with 36 additions and 0 deletions
+24
View File
@@ -0,0 +1,24 @@
// Type definitions for batch-stream 0.1.2
// Project: https://github.com/segmentio/batch-stream
// Definitions by: Nicholas Penree <http://github.com/drudge>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
/// <reference path="../node/node.d.ts" />
declare module "batch-stream" {
import stream = require('stream');
interface Options {
size?: number;
highWaterMark?: number;
}
class BatchStream extends stream.Transform {
size: number;
batch: any[];
constructor(options: Options);
}
export = BatchStream;
}