Installation
npm install --save @types/lazypipe
Summary
This package contains type definitions for lazypipe (https://github.com/OverZealous/lazypipe).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/lazypipe.
index.d.ts
/// <reference types="node"/>
interface IPipelineBuilder {
/**
* Returns a stream where all the internal steps are processed sequentially
* and the final result is passed on.
*/
(): NodeJS.ReadWriteStream;
/**
* Creates a new lazy pipeline with all the previous steps, and the new step added to the end.
* @param fn A stream creation function to call when the pipeline is created later.
* @param args Any remaining arguments are saved and passed into fn when the pipeline is created.
*/
pipe(fn: Function, ...args: any[]): IPipelineBuilder;
}
/**
* Initializes a lazypipe.
*/
declare function lazypipe(): IPipelineBuilder;
export = lazypipe;
Additional Details
- Last updated: Tue, 07 Nov 2023 09:09:38 GMT
- Dependencies: @types/node
Credits
These definitions were written by Thomas Corbière.