UNPKG

1.89 kBMarkdownView Raw
1# Installation
2> `npm install --save @types/gulp-newer`
3
4# Summary
5This package contains type definitions for gulp-newer (https://github.com/tschaub/gulp-newer).
6
7# Details
8Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/gulp-newer.
9## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/gulp-newer/index.d.ts)
10````ts
11// Type definitions for gulp-newer
12// Project: https://github.com/tschaub/gulp-newer
13// Definitions by: Thomas Corbière <https://github.com/tomc974>
14// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
15
16/// <reference types="node"/>
17
18
19interface IOptions {
20 /**
21 * Path to destination directory or file.
22 */
23 dest: string;
24
25 /**
26 * Source files will be matched to destination files with the provided extension.
27 */
28 ext?: string | undefined;
29
30 /**
31 * Map relative source paths to relative destination paths.
32 */
33 map?: ((relativePath: string) => string) | undefined;
34}
35
36interface IGulpNewer {
37 /**
38 * Create a transform stream that passes through files whose modification time
39 * is more recent than the corresponding destination file's modification time.
40 * @param dest Path to destination directory or file.
41 */
42 (dest: string): NodeJS.ReadWriteStream;
43
44 /**
45 * Create a transform stream that passes through files whose modification time
46 * is more recent than the corresponding destination file's modification time.
47 */
48 (options: IOptions): NodeJS.ReadWriteStream;
49}
50
51declare const newer: IGulpNewer;
52export = newer;
53
54````
55
56### Additional Details
57 * Last updated: Thu, 08 Jul 2021 14:22:31 GMT
58 * Dependencies: [@types/node](https://npmjs.com/package/@types/node)
59 * Global values: none
60
61# Credits
62These definitions were written by [Thomas Corbière](https://github.com/tomc974).
63
\No newline at end of file