mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 19:07:08 +00:00
* 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>
20 lines
644 B
TypeScript
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;
|