forked from DefinitelyTyped/DefinitelyTyped
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gulp-newer.d.ts
46 lines (39 loc) · 1.31 KB
/
gulp-newer.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-newer
// Project: https://github.com/tschaub/gulp-newer
// Definitions by: Thomas Corbière <https://github.com/tomc974>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
/// <reference path="../node/node.d.ts"/>
declare module "gulp-newer"
{
interface IOptions
{
/**
* Path to destination directory or file.
*/
dest: string;
/**
* Source files will be matched to destination files with the provided extension.
*/
ext?: string;
/**
* Map relative source paths to relative destination paths.
*/
map?: (relativePath: string) => string;
}
interface IGulpNewer
{
/**
* Create a transform stream that passes through files whose modification time
* is more recent than the corresponding destination file's modification time.
* @param dest Path to destination directory or file.
*/
(dest: string): NodeJS.ReadWriteStream;
/**
* Create a transform stream that passes through files whose modification time
* is more recent than the corresponding destination file's modification time.
*/
(options: IOptions): NodeJS.ReadWriteStream;
}
const newer: IGulpNewer;
export = newer;
}