Add type definitions for gulp-cached

This commit is contained in:
Thomas Corbière
2015-08-15 11:17:00 +02:00
parent 944f02c513
commit 0dcd0aec0b
2 changed files with 60 additions and 0 deletions
+39
View File
@@ -0,0 +1,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/borisyankov/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;
}