(...key: TKey)
| 6 | const cache = new Map<CacheKeyFragment, any>(); |
| 7 | |
| 8 | function get(...key: TKey): TEntryFn { |
| 9 | const lastKey = key.slice(-1)[0]; |
| 10 | |
| 11 | const nestedCache = getCache(cache, ...key); |
| 12 | |
| 13 | return ( |
| 14 | nestedCache.get(lastKey) || |
| 15 | nestedCache.set(lastKey, memoizeOne(fn)).get(lastKey) |
| 16 | ); |
| 17 | } |
| 18 | |
| 19 | return {get}; |
| 20 | }; |
nothing calls this directly
no test coverage detected