@types/memorystream
TypeScript icon, indicating that this package has built-in type declarations

0.3.4 • Public • Published

Installation

npm install --save @types/memorystream

Summary

This package contains type definitions for memorystream (https://github.com/JSBizon/node-memorystream).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/memorystream.

index.d.ts

/// <reference types="node" />

import { Duplex, Stream } from "stream";

type DataType = string | Buffer | Stream;

interface Options {
    readable?: boolean;
    writeable?: boolean;
    maxbufsize?: number;
    bufoverflow?: number;
    frequence?: number;
}

declare class MemoryStream extends Duplex {
    constructor(data?: DataType | DataType[], options?: Options);

    static createReadStream: (data?: DataType | DataType[], options?: Options) => MemoryStream;
    static createWriteStream: (data?: DataType | DataType[], options?: Options) => MemoryStream;
}

export = MemoryStream;

Additional Details

  • Last updated: Tue, 07 Nov 2023 09:09:39 GMT
  • Dependencies: @types/node

Credits

These definitions were written by bangbang93, and geniou.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/memorystream

Weekly Downloads

5,526

Version

0.3.4

License

MIT

Unpacked Size

4.01 kB

Total Files

5

Last publish

Collaborators

  • types