Add pull-{pushable,streams}, cleanup commonjs exports

This commit is contained in:
Jaco Greeff
2018-06-21 15:49:53 +02:00
parent c96c7b7003
commit d0869fbebc
26 changed files with 107 additions and 41 deletions

16
pull-stream/index.d.ts vendored Normal file
View File

@ -0,0 +1,16 @@
// 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"/>
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;