@kwiz/node 1.0.19 → 1.0.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -9,4 +9,4 @@ export declare function getWithCache<T>(worker: () => Promise<{
9
9
  /** must be unique for your call! function name, and parameters */
10
10
  cacheKey: string;
11
11
  forceRefresh?: boolean;
12
- }): Promise<any>;
12
+ }): Promise<T>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kwiz/node",
3
- "version": "1.0.19",
3
+ "version": "1.0.20",
4
4
  "description": "KWIZ utilities and helpers for node applications",
5
5
  "module": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -10,7 +10,7 @@ export async function getWithCache<T>(worker: () => Promise<{ success: boolean;
10
10
  /** must be unique for your call! function name, and parameters */
11
11
  cacheKey: string;
12
12
  forceRefresh?: boolean;
13
- }) {
13
+ }): Promise<T> {
14
14
  const now = new Date();
15
15
  //purge old values
16
16
  Object.keys($$cache).forEach(key => {