diff --git a/package.json b/package.json index 450137f..6e4fa64 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@ztimson/utils", - "version": "0.24.9", + "version": "0.24.10", "description": "Utility library", "author": "Zak Timson", "license": "MIT", diff --git a/src/cache.ts b/src/cache.ts index 9dc2d73..9718667 100644 --- a/src/cache.ts +++ b/src/cache.ts @@ -11,7 +11,7 @@ export type CacheOptions = { expiryPolicy?: 'delete' | 'keep'; } -export type CachedValue = T | {_expired?: boolean}; +export type CachedValue = T & {_expired?: boolean}; /** * Map of data which tracks whether it is a complete collection & offers optional expiry of cached values