Installation
npm install --save @types/readable-to-readable
Summary
This package contains type definitions for readable-to-readable (https://github.com/bergos/readable-to-readable).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/readable-to-readable.
index.d.ts
/// <reference types="node" />
import { Readable, ReadableOptions } from "stream";
declare namespace ReadableToReadable {
interface ReadFunction {
(): boolean;
}
interface Options<From, To> {
map?: (chunk: From) => To;
end?: boolean;
}
}
declare class ReadableToReadable<From = string, To = From> extends Readable {
constructor(input: Readable, options?: ReadableToReadable.Options<From, To> & Partial<ReadableOptions>);
static readFrom<From = string, To = From>(
input: Readable,
options?: ReadableToReadable.Options<From, To>,
): ReadableToReadable.ReadFunction;
}
export = ReadableToReadable;
Additional Details
- Last updated: Tue, 02 Jan 2024 20:06:58 GMT
- Dependencies: @types/node
Credits
These definitions were written by Tomasz Pluskiewicz, and Ludovic Muller.