mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
22 lines
534 B
TypeScript
22 lines
534 B
TypeScript
// Type definitions for from v0.1.3
|
|
// Project: https://github.com/dominictarr/from
|
|
// Definitions by: Bart van der Schoor <https://github.com/Bartvds>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
|
|
/// <reference path="../node/node.d.ts" />
|
|
|
|
declare module 'from' {
|
|
|
|
var mod: mod.From;
|
|
|
|
namespace mod {
|
|
interface From {
|
|
(getChunk: (count: number, next: () => any) => any): NodeJS.ReadableStream;
|
|
(chunks: any[]): NodeJS.ReadableStream;
|
|
emit(type: string, data: any): void;
|
|
}
|
|
}
|
|
|
|
export = mod;
|
|
}
|