Cleanup exports (less indirection) (#3226)

* Cleanup exports (less indirection)

* packageInfo import
This commit is contained in:
Jaco Greeff
2021-02-27 13:17:07 +01:00
committed by GitHub
parent 47afe2cfc6
commit a0d6384b01
13 changed files with 16 additions and 42 deletions
+2 -4
View File
@@ -5,7 +5,7 @@ import type { DeriveCache } from './types';
const mapCache = new Map<string, any>();
const deriveMapCache: DeriveCache = {
export const deriveMapCache: DeriveCache = {
del: (key: string): void => {
mapCache.delete(key);
},
@@ -24,11 +24,9 @@ const deriveMapCache: DeriveCache = {
}
};
const deriveNoopCache: DeriveCache = {
export const deriveNoopCache: DeriveCache = {
del: (): void => undefined,
forEach: () => undefined,
get: (): undefined => undefined,
set: (_: string, value: unknown): unknown => value
};
export { deriveMapCache, deriveNoopCache };