2018-06-21 15:49:53 +02:00
|
|
|
// Type definitions for pull-pushable 2.0.0
|
|
|
|
// Project: https://github.com/pull-stream/pull-pushable
|
|
|
|
// Definitions by: Jaco Greeff <https://github.com/jacogr>
|
|
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
|
|
|
|
|
|
/// <reference types="node"/>
|
|
|
|
|
2018-06-22 12:53:49 +02:00
|
|
|
declare module 'pull-pushable' {
|
2018-06-25 09:37:22 +02:00
|
|
|
export type Pushable = {
|
2018-06-21 15:49:53 +02:00
|
|
|
push: (buffer: Buffer) => void
|
2019-05-30 11:41:19 -05:00
|
|
|
end: (end?: any) => void
|
2018-06-21 15:49:53 +02:00
|
|
|
};
|
|
|
|
|
2018-09-04 12:49:12 +02:00
|
|
|
export type PullPushable = (errorHandler?: (error: Error) => void) => Pushable;
|
2018-06-21 15:49:53 +02:00
|
|
|
|
2018-06-25 09:37:22 +02:00
|
|
|
const pushable: PullPushable;
|
|
|
|
|
|
|
|
export default pushable;
|
2018-06-22 12:53:49 +02:00
|
|
|
}
|