@types/cache-manager-fs-hash
TypeScript icon, indicating that this package has built-in type declarations

0.0.4 • Public • Published

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

Credits

These definitions were written by René Schapka.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/cache-manager-fs-hash

Weekly Downloads

4,710

Version

0.0.4

License

MIT

Unpacked Size

4.11 kB

Total Files

5

Last publish

Collaborators

  • types