Installation
npm install --save @types/cache-manager-fs-hash
Summary
This package contains type definitions for cache-manager-fs-hash (https://github.com/rolandstarke/node-cache-manager-fs-hash#readme).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/cache-manager-fs-hash.
index.d.ts
import { Cache, CacheOptions, Store, StoreConfig } from "cache-manager";
interface FsHashStoreOptions {
path?: string | undefined;
ttl?: number | undefined;
maxsize?: number | undefined;
subdirs?: boolean | undefined;
zip?: boolean | undefined;
}
interface FsHashStoreConfig {
store: FsHashStoreConstructor;
options?: FsHashStoreOptions | undefined;
}
interface FsHashStoreConstructor {
create: (config: FsHashStoreConfig) => Store;
}
declare module "cache-manager" {
function caching(IConfig: FsHashStoreConfig | (StoreConfig & CacheOptions)): Cache;
}
declare const methods: FsHashStoreConstructor;
export = methods;
export {};
Additional Details
- Last updated: Mon, 06 Nov 2023 22:41:05 GMT
- Dependencies: @types/cache-manager
Credits
These definitions were written by René Schapka.