mirror of
https://github.com/fluencelabs/libp2p-ts
synced 2025-04-22 04:22:12 +00:00
errorHandler has error param in pull-stream drain
This commit is contained in:
parent
5f9402bf58
commit
58745fa7fa
2
types/pull-stream/index.d.ts
vendored
2
types/pull-stream/index.d.ts
vendored
@ -11,7 +11,7 @@ export type PullStream = {
|
|||||||
(source: any, sink: any): void;
|
(source: any, sink: any): void;
|
||||||
|
|
||||||
collect: (cb: (error: Error | null, values: Array<Buffer>) => any) => void,
|
collect: (cb: (error: Error | null, values: Array<Buffer>) => any) => void,
|
||||||
drain: (handler: (message: Buffer) => void, errorHandler?: () => boolean) => void;
|
drain: (handler: (message: Buffer) => void, errorHandler?: (error: Error) => boolean) => void;
|
||||||
values: (values: Array<string | Buffer>) => void;
|
values: (values: Array<string | Buffer>) => void;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user