// Type definitions for pull-stream 3.6.8 // Project: https://github.com/pull-stream/pull-stream // Definitions by: Jaco Greeff // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// declare module 'pull-stream' { export type PullStream = { // FIXME this should be actual streams, not 'any' (...streams: Array): void; collect: (cb: (error: Error | null, values: Array) => any) => void, drain: (handler: (message: Buffer) => void, errorHandler?: (error: Error) => boolean) => void; values: (values: Array) => void; map: (mapper: (x: any) => any) => any; asyncMap: (mapper: (x: any, cb: (err?: Error, data?: any) => void) => void) => void; }; const pull: PullStream; export default pull; } declare module 'pull-catch' { export default function Catch(handler: (error: Error) => void): any; }