You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Got the following error from inside the lru-cache when running tsc on my project, could it be something on my side? Earlier versions, before implementing Map, are not affected.
> tsc
node_modules/lru-cache/dist/commonjs/index.d.ts:762:5 - error TS2416: Property 'forEach' in type 'LRUCache<K, V, FC>' is not assignable to the same property in base type 'Map<K, V>'.
Type '(fn: (v: V, k: K, self: LRUCache<K, V, FC>) => any, thisp?: any) => void' is not assignable to type '(callbackfn: (value: V, key: K, map: Map<K, V>) => void, thisArg?: any) => void'.
Types of parameters 'fn' and 'callbackfn' are incompatible.
Types of parameters 'map' and 'self' are incompatible.
Property 'toJSON' is missing in type 'LRUCache<K, V, FC>' but required in type 'Map<K, V>'.
762 forEach(fn: (v: V, k: K, self: LRUCache<K, V, FC>) => any, thisp?: any): void;
~~~~~~~
../../node_modules/@types/core-js/index.d.ts:68:5
68 toJSON(): any;
~~~~~~~~~~~~~~
'toJSON' is declared here.
The text was updated successfully, but these errors were encountered:
typescript: 5.4.3
node: 21.7.1
lru-cache: 10.2.0
@types/node: 20.11.30
Got the following error from inside the lru-cache when running
tsc
on my project, could it be something on my side? Earlier versions, before implementing Map, are not affected.The text was updated successfully, but these errors were encountered: