0.0.37 • Published 2 years ago
@types/gulp-plumber v0.0.37
Installation
npm install --save @types/gulp-plumber
Summary
This package contains type definitions for gulp-plumber (https://github.com/floatdrop/gulp-plumber).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/gulp-plumber.
index.d.ts
// Type definitions for gulp-plumber
// Project: https://github.com/floatdrop/gulp-plumber
// Definitions by: Joe Skeen <https://github.com/joeskeen>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference types="node" />
/** Prevent pipe breaking caused by errors from gulp plugins */
/** Prevent pipe breaking caused by errors from gulp plugins */
interface GulpPlumber {
/**
* Returns Stream, that fixes pipe methods on Streams that are next in pipeline.
*
* @param options Sets options as described in the Options interface
*/
(options?: Options): NodeJS.ReadWriteStream;
/**
* Returns Stream, that fixes pipe methods on Streams that are next in pipeline.
*
* @param errorHandler the function to be attached to the stream on('error')
*/
(errorHandler: ErrorHandlerFunction): NodeJS.ReadWriteStream;
/** returns default behaviour for pipeline after it was piped */
stop(): NodeJS.ReadWriteStream;
}
interface Options {
/**
* Handle errors in underlying streams and output them to console. Default true.
* If function passed, it will be attached to stream on('error')
* If false passed, error handler will not be attached
* If undefined passed, default error handler will be attached
*/
errorHandler?: ErrorHandlerFunction | boolean | undefined;
/** Monkeypatch pipe functions in underlying streams in pipeline. Default true. */
inherit?: boolean | undefined;
}
/** an error handler function to be attached to the stream on('error') */
interface ErrorHandlerFunction {
/** an error handler function to be attached to the stream on('error') */
(error: any): void;
}
/** Prevent pipe breaking caused by errors from gulp plugins */
declare var gulpPlumber: GulpPlumber;
export = gulpPlumber;
Additional Details
- Last updated: Thu, 08 Jul 2021 14:22:32 GMT
- Dependencies: @types/node
- Global values: none
Credits
These definitions were written by Joe Skeen.
0.0.35
2 years ago
0.0.36
2 years ago
0.0.37
2 years ago
0.0.34
2 years ago
0.0.33
4 years ago
0.0.32
8 years ago
0.0.31
8 years ago
0.0.30
8 years ago
0.0.29
9 years ago
0.0.28
9 years ago
0.0.27-alpha
9 years ago
0.0.26-alpha
9 years ago
0.0.25-alpha
9 years ago
0.0.24-alpha
9 years ago
0.0.23-alpha
9 years ago
0.0.22-alpha
9 years ago
0.0.21-alpha
9 years ago
0.0.16-alpha
9 years ago
0.0.15-alpha
9 years ago