forked from DefinitelyTyped/DefinitelyTyped
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gulp-cached.d.ts
39 lines (33 loc) · 874 Bytes
/
gulp-cached.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
// Type definitions for gulp-cached
// Project: https://github.com/wearefractal/gulp-cached
// Definitions by: Thomas Corbière <https://github.com/tomc974>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference path="../node/node.d.ts"/>
declare module "gulp-cached"
{
interface ICacheStore
{
[name: string]: {};
}
interface IOptions
{
/**
* Uses md5 instead of storing the whole file contents.
* @default false
*/
optimizeMemory?: boolean;
}
interface IGulpCached
{
/**
* Creates a new cache hash or uses an existing one.
*/
(name: string, options?: IOptions): NodeJS.ReadWriteStream;
/**
* Cache store.
*/
caches: ICacheStore;
}
const cached: IGulpCached;
export = cached;
}