# Installation
> `npm install --save @types/lazystream`

# Summary
This package contains type definitions for lazystream (https://github.com/jpommerening/node-lazystream).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/lazystream.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/lazystream/index.d.ts)
````ts
/// <reference types="node" />
import { Stream as NodeStream } from "node:stream";
import { PassThrough, Stream, TransformOptions } from "readable-stream";

export class Readable extends PassThrough {
    /**
     * @param fn The function to call to obtain the stream to read from
     */
    constructor(fn: () => NodeStream | Stream);
    /**
     * @param fn The function to call to obtain the stream to read from
     * @param options Options for the underlying {@link PassThrough} class.
     * Accessible via {@link fn}
     */
    constructor(fn: (options: TransformOptions) => NodeStream | Stream, options: TransformOptions);
    /**
     * @param fn The function to call to obtain the stream to read from
     * @param options Options for the underlying {@link PassThrough} class.
     * Accessible via {@link fn}, if they are passed
     */
    constructor(fn: (options?: TransformOptions) => NodeStream | Stream, options?: TransformOptions);
}

export class Writable extends PassThrough {
    /**
     * @param fn The function to call to obtain the stream to write to
     */
    constructor(fn: () => NodeStream | Stream);
    /**
     * @param fn The function to call to obtain the stream to write to
     * @param options Options for the underlying {@link PassThrough} class.
     * Accessible via {@link fn}
     */
    constructor(fn: (options: TransformOptions) => NodeStream | Stream, options: TransformOptions);
    /**
     * @param fn The function to call to obtain the stream to write to
     * @param options Options for the underlying {@link PassThrough} class.
     * Accessible via {@link fn}, if they are passed
     */
    constructor(fn: (options?: TransformOptions) => NodeStream | Stream, options?: TransformOptions);
}

````

### Additional Details
 * Last updated: Fri, 18 Oct 2024 15:36:54 GMT
 * Dependencies: [@types/node](https://npmjs.com/package/@types/node), [@types/readable-stream](https://npmjs.com/package/@types/readable-stream)

# Credits
These definitions were written by [Adam Thompson-Sharpe](https://github.com/MysteryBlokHed).
