mirror of
https://github.com/fluencelabs/libp2p-ts
synced 2025-03-16 18:20:50 +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;
|
||||
|
||||
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;
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user