forked from DefinitelyTyped/DefinitelyTyped
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gulp-gzip.d.ts
47 lines (40 loc) · 1.39 KB
/
gulp-gzip.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
// Type definitions for gulp-gzip
// Project: https://github.com/jstuckey/gulp-gzip
// Definitions by: Qubo <https://github.com/tkQubo>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
/// <reference path="../node/node.d.ts" />
declare module "gulp-gzip" {
import zlib = require('zlib');
namespace gzip {
interface Gzip {
(options?: Options): NodeJS.ReadWriteStream;
}
interface Options {
/**
* Appends .gz file extension if true.
* @default true
*/
append?: boolean;
/**
* Appends an arbitrary extension to the filename. Disables append and preExtension options.
*/
extension?: string;
/**
* Appends an arbitrary pre-extension to the filename. Disables append and extension options.
*/
preExtension?: string;
/**
* Minimum size required to compress a file.
* @default false
*/
threshold?: number|string|boolean;
/**
* 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;
}
}
var gzip: gzip.Gzip;
export = gzip;
}