The Definition file for @types/cache-manager includes the following definition:
interface Cache {
del(key: string): Promise<any>;
// 11 other Method Signitures (removed for brevity)
}
Additionally, it contains:
declare namespace cacheManager {
function caching(IConfig: StoreConfig): Cache;
function multiCaching(Caches: Cache[]): Cache;
}
export = cacheManager;
I am interested in utilizing the Cache
interface in my own code. However, because it is not being exported, I am unable to access it. This has led me to ponder the following questions:
- Could there be a valid reason why the author chose not to export the Cache interface?
- Is there any possible method by which I could forcefully export this interface?