UNPKG

1.07 kBTypeScriptView Raw
1// Type definitions for gulp-zip 4.0
2// Project: https://github.com/sindresorhus/gulp-zip
3// Definitions by: Louis Orleans <https://github.com/dudeofawesome>
4// Robert Bullen <https://github.com/robertbullen>
5// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
6
7/// <reference types="node" />
8
9declare namespace GulpZip {
10 interface GulpZipOptions {
11 /**
12 * Compress
13 * @default true
14 */
15 compress?: boolean | undefined;
16
17 /**
18 * Overrides the modification timestamp for all files added to the archive.
19 *
20 * Tip: Setting it to the same value across executions enables you to create stable archives
21 * that change only when the contents of their entries change, regardless of whether those
22 * entries were "touched" or regenerated.
23 *
24 * @default undefined
25 */
26 modifiedTime?: Date | undefined;
27 }
28}
29
30declare function GulpZip(filename: string, options?: GulpZip.GulpZipOptions): NodeJS.ReadStream;
31
32export = GulpZip;