1 | // Type definitions for gulp-newer
|
2 | // Project: https://github.com/tschaub/gulp-newer
|
3 | // Definitions by: Thomas Corbière <https://github.com/tomc974>
|
4 | // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
5 |
|
6 | /// <reference types="node"/>
|
7 |
|
8 |
|
9 | interface IOptions {
|
10 | /**
|
11 | * Path to destination directory or file.
|
12 | */
|
13 | dest: string;
|
14 |
|
15 | /**
|
16 | * Source files will be matched to destination files with the provided extension.
|
17 | */
|
18 | ext?: string;
|
19 |
|
20 | /**
|
21 | * Map relative source paths to relative destination paths.
|
22 | */
|
23 | map?: (relativePath: string) => string;
|
24 | }
|
25 |
|
26 | interface IGulpNewer {
|
27 | /**
|
28 | * Create a transform stream that passes through files whose modification time
|
29 | * is more recent than the corresponding destination file's modification time.
|
30 | * @param dest Path to destination directory or file.
|
31 | */
|
32 | (dest: string): NodeJS.ReadWriteStream;
|
33 |
|
34 | /**
|
35 | * Create a transform stream that passes through files whose modification time
|
36 | * is more recent than the corresponding destination file's modification time.
|
37 | */
|
38 | (options: IOptions): NodeJS.ReadWriteStream;
|
39 | }
|
40 |
|
41 | declare const newer: IGulpNewer;
|
42 | export = newer;
|