mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
added defs for some (stream) utils
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
/// <reference path="./stream-to-array.d.ts" />
|
||||
/// <reference path="../node/node.d.ts" />
|
||||
|
||||
import toArray = require('stream-to-array');
|
||||
|
||||
var rs: NodeJS.ReadableStream;
|
||||
|
||||
toArray(rs, (err, arr) => {
|
||||
|
||||
});
|
||||
Vendored
+6
@@ -0,0 +1,6 @@
|
||||
/// <reference path="../node/node.d.ts" />
|
||||
|
||||
declare module 'stream-to-array' {
|
||||
function toArray(stream: NodeJS.ReadableStream, callback: (err: any, arr: any[]) => void): NodeJS.ReadWriteStream;
|
||||
export = toArray;
|
||||
}
|
||||
Reference in New Issue
Block a user