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

0.1.0 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/readable-to-readable

Weekly Downloads

1

Version

0.1.0

License

MIT

Unpacked Size

4.27 kB

Total Files

5

Last publish

Collaborators

  • types