@types/gulp-cached
Version:
TypeScript definitions for gulp-cached
48 lines (37 loc) • 1.19 kB
Markdown
# Installation
> `npm install --save @types/gulp-cached`
# Summary
This package contains type definitions for gulp-cached (https://github.com/wearefractal/gulp-cached).
# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/gulp-cached.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/gulp-cached/index.d.ts)
````ts
/// <reference types="node"/>
interface ICacheStore {
[name: string]: {};
}
interface IOptions {
/**
* Uses md5 instead of storing the whole file contents.
* @default false
*/
optimizeMemory?: boolean | undefined;
}
interface IGulpCached {
/**
* Creates a new cache hash or uses an existing one.
*/
(name: string, options?: IOptions): NodeJS.ReadWriteStream;
/**
* Cache store.
*/
caches: ICacheStore;
}
declare const cached: IGulpCached;
export = cached;
````
### Additional Details
* Last updated: Tue, 07 Nov 2023 03:09:37 GMT
* Dependencies: [@types/node](https://npmjs.com/package/@types/node)
# Credits
These definitions were written by [Thomas Corbière](https://github.com/tomc974).