SortedMap signature mismatch from Map
- Dominant language
- TypeScript
- Stars
- 75
- Forks
- 43
- PR merge metrics
- No merged PRs in 30d
Description
I’ve done a fresh install of helia, I’m on typescript 4.9.5 and node 21.4.0. When trying to compile my project I’m getting the following error.
Error: node_modules/ipfs-bitswap/dist/src/utils/sorted-map.d.ts:24:5 - error TS2416: Property ‘forEach’ in type ‘SortedMap’ is not assignable to the same property in base type ‘Map’.
Type ‘(cb: (entry: [Key, Value]) => void, thisArg?: SortedMap | undefined) => void’ is not assignable to type ‘(callbackfn: (value: Value, key: Key, map: Map) => void, thisArg?: any) => void’.
Types of parameters ‘cb’ and ‘callbackfn’ are incompatible.
This is happening with both ipfs-bitswap 19 and 20.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.