The cache documentation states that QuickLRU
could be used as a cache for got
but instead it throws following TypeScript Error:
Documentation is up-to-date or typings are fixed
import QuickLRU from 'quick-lru';
import got from 'got';
const cache = new QuickLRU({maxSize: 1000})
await got('https://sindresorhus.com', {cache});
tsconfig.json
{
"compilerOptions": {
"module": "nodenext",
"moduleResolution": "nodenext",
"types": []
},
"files": [],
"include": [
"index.ts"
],
"exclude": [
"node_modules",
"build"
],
}
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too