Installation
npm install --save @types/gulp-gzip
Summary
This package contains type definitions for gulp-gzip (https://github.com/jstuckey/gulp-gzip).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/gulp-gzip.
index.d.ts
/// <reference types="node" />
import zlib = require("zlib");
declare namespace gzip {
interface Gzip {
(options?: Options): NodeJS.ReadWriteStream;
}
interface Options {
/**
* Appends .gz file extension if true.
* @default true
*/
append?: boolean | undefined;
/**
* Appends an arbitrary extension to the filename. Disables append and preExtension options.
*/
extension?: string | undefined;
/**
* Appends an arbitrary pre-extension to the filename. Disables append and extension options.
*/
preExtension?: string | undefined;
/**
* Minimum size required to compress a file.
* @default false
*/
threshold?: number | string | boolean | undefined;
/**
* Options object to pass through to zlib.Gzip.
* See <a href='https://nodejs.org/api/zlib.html#zlib_options'>zlib</a> documentation for more information.
*/
gzipOptions?: zlib.ZlibOptions | undefined;
}
}
declare var gzip: gzip.Gzip;
export = gzip;
Additional Details
- Last updated: Tue, 07 Nov 2023 03:09:37 GMT
- Dependencies: @types/node
Credits
These definitions were written by Qubo.