mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
13 lines
238 B
TypeScript
13 lines
238 B
TypeScript
/// <reference path="./from.d.ts" />
|
|
/// <reference path="../node/node.d.ts" />
|
|
|
|
import from = require('from');
|
|
|
|
var rs: NodeJS.ReadableStream;
|
|
|
|
rs = from([]);
|
|
rs = from(function (count: number, next: () => any) {
|
|
this.emit('end');
|
|
});
|
|
|