fix: types error in npm-resolver

This commit is contained in:
Zoltan Kochan
2023-03-03 06:26:54 +02:00
parent cfbab73a61
commit 62d1cb8f1e

View File

@@ -86,7 +86,7 @@ export function createNpmResolver (
cacheKey: (...args) => JSON.stringify(args),
maxAge: 1000 * 20, // 20 seconds
})
const metaCache = new LRU({
const metaCache = new LRU<string, PackageMeta>({
max: 10000,
ttl: 120 * 1000, // 2 minutes
})