mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
12 lines
233 B
TypeScript
12 lines
233 B
TypeScript
/// <reference path="./through.d.ts" />
|
|
|
|
import through = require('through');
|
|
|
|
var i = 0;
|
|
through(
|
|
function () {
|
|
this.queue((i++).toString());
|
|
}, function () {
|
|
this.queue(null);
|
|
}, { autoDestroy: true }).pipe(process.stdout);
|