22 lines
689 B
TypeScript
Raw Normal View History

// Type definitions for pull-stream 3.6.8
// Project: https://github.com/pull-stream/pull-stream
// Definitions by: Jaco Greeff <https://github.com/jacogr>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference types="node"/>
2018-06-22 12:53:49 +02:00
declare module 'pull-stream' {
export type PullStream = {
// FIXME this should be actual streams, not 'any'
2018-09-14 14:01:24 +02:00
(...streams: Array<any>): void;
collect: (cb: (error: Error | null, values: Array<Buffer>) => any) => void,
drain: (handler: (message: Buffer) => void, errorHandler?: (error: Error) => boolean) => void;
values: (values: Array<string | Buffer>) => void;
};
const pull: PullStream;
export default pull;
2018-06-22 12:53:49 +02:00
}