Files
DefinitelyTyped/types/through/through-tests.ts
T

11 lines
193 B
TypeScript

import through = require('through');
var i = 0;
through(
function () {
this.queue((i++).toString());
}, function () {
this.queue(null);
}, { autoDestroy: true }).pipe(process.stdout);