mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-07 08:58:49 +08:00
10 lines
157 B
TypeScript
10 lines
157 B
TypeScript
import from = require('from');
|
|
|
|
var rs: NodeJS.ReadableStream;
|
|
|
|
rs = from([]);
|
|
rs = from(function (count: number, next: () => any) {
|
|
this.emit('end');
|
|
});
|
|
|