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.