mirror of
https://github.com/fluencelabs/libp2p-ts
synced 2025-03-31 01:11:04 +00:00
19 lines
579 B
TypeScript
19 lines
579 B
TypeScript
// 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"/>
|
|
|
|
declare module 'pull-stream' {
|
|
type Pull = {
|
|
(source: any, sink: any): void;
|
|
|
|
collect: (cb: (error: Error | null, values: Array<Buffer>) => any) => void,
|
|
drain: (handler: (message: Buffer) => void, errorHandler?: () => boolean) => void;
|
|
values: (values: Array<string | Buffer>) => void;
|
|
};
|
|
|
|
export = Pull;
|
|
}
|