added definition for JSONStream

This commit is contained in:
Bart van der Schoor
2014-06-19 18:15:59 +02:00
parent 8c8e721e66
commit bd3b137455
2 changed files with 37 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
/// <reference path="JSONStream.d.ts" />
import json = require('JSONStream');
var read: NodeJS.ReadableStream;
var write: NodeJS.WritableStream;
read = read.pipe(json.parse('*'));
read = read.pipe(json.parse(['foo/*', 'bar/*']));
read = json.stringify();
read = json.stringify('{', ',', '}');
read = json.stringifyObject();
read = json.stringifyObject('{', ',', '}');