mirror of
https://github.com/fluencelabs/libp2p-ts
synced 2025-03-16 18:20:50 +00:00
Update pull-pushable to have error callback
This commit is contained in:
parent
14540f3432
commit
120c92fcb8
2
types/pull-pushable/index.d.ts
vendored
2
types/pull-pushable/index.d.ts
vendored
@ -10,7 +10,7 @@ export type Pushable = {
|
||||
push: (buffer: Buffer) => void
|
||||
};
|
||||
|
||||
export type PullPushable = () => Pushable;
|
||||
export type PullPushable = (errorHandler?: (error: Error) => void) => Pushable;
|
||||
|
||||
const pushable: PullPushable;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user