Compare commits

..

1 Commits

Author SHA1 Message Date
4fecf10d11 * Fixed cache value type
All checks were successful
Build / Build NPM Project (push) Successful in 1m16s
Build / Tag Version (push) Successful in 14s
Build / Publish Documentation (push) Successful in 54s
2025-05-13 10:53:17 -04:00
2 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
{
"name": "@ztimson/utils",
"version": "0.24.9",
"version": "0.24.10",
"description": "Utility library",
"author": "Zak Timson",
"license": "MIT",

View File

@ -11,7 +11,7 @@ export type CacheOptions = {
expiryPolicy?: 'delete' | 'keep';
}
export type CachedValue<T> = T | {_expired?: boolean};
export type CachedValue<T> = T & {_expired?: boolean};
/**
* Map of data which tracks whether it is a complete collection & offers optional expiry of cached values