DefinitelyTyped/types/binary-split/index.d.ts
Krisztián Balla 476e1b8cd1
[types/binary-split]: Add new type definitions for module (#45340)
* Add types for binary-split

* Add minimum TS version

* Make test fail

* Make test faile

* Fix test

* Update types/binary-split/index.d.ts

Co-authored-by: Piotr Błażejewicz (Peter Blazejewicz) <peterblazejewicz@users.noreply.github.com>

* Update types/binary-split/index.d.ts

Co-authored-by: Piotr Błażejewicz (Peter Blazejewicz) <peterblazejewicz@users.noreply.github.com>

* Function parameter is optional

Co-authored-by: Piotr Błażejewicz (Peter Blazejewicz) <peterblazejewicz@users.noreply.github.com>
2020-06-23 11:52:38 -04:00

20 lines
644 B
TypeScript

// Type definitions for binary-split 1.0
// Project: https://github.com/maxogden/binary-split#readme
// Definitions by: Krisztián Balla <https://github.com/krisztianb>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// Minimum TypeScript Version: 3.2
/// <reference types="node" />
import { Transform } from 'stream';
export = BinarySplit;
/**
* Split streams of binary data.
* @param splitOn The matcher for the splitting points in the stream. Default: os.EOL
*/
declare function BinarySplit(
splitOn?: string | Buffer | ArrayBuffer | SharedArrayBuffer | number[] | BigInt[] | Uint8Array | object,
): Transform;