node_modules/typedoc/dist/lib/utils/map.d.ts:19:5 - error TS2416: Property 'entries' in type 'StableKeyMap<K, V>' is not assignable to the same property in base type 'Map<K, V>'.
Type '() => IterableIterator<[K, V]>' is not assignable to type '() => MapIterator<[K, V]>'.
Type 'IterableIterator<[K, V]>' is missing the following properties from type 'MapIterator<[K, V]>': map, filter, take, drop, and 9 more.
19 entries(): IterableIterator<[K, V]>;
~~~~~~~
node_modules/typedoc/dist/lib/utils/map.d.ts:20:5 - error TS2416: Property 'keys' in type 'StableKeyMap<K, V>' is not assignable to the same property in base type 'Map<K, V>'.
Type '() => IterableIterator<K>' is not assignable to type '() => MapIterator<K>'.
Type 'IterableIterator<K>' is missing the following properties from type 'MapIterator<K>': map, filter, take, drop, and 9 more.
20 keys(): IterableIterator<K>;
~~~~
node_modules/typedoc/dist/lib/utils/map.d.ts:21:5 - error TS2416: Property 'values' in type 'StableKeyMap<K, V>' is not assignable to the same property in base type 'Map<K, V>'.
Type '() => IterableIterator<V>' is not assignable to type '() => MapIterator<V>'.
Type 'IterableIterator<V>' is missing the following properties from type 'MapIterator<V>': map, filter, take, drop, and 9 more.
21 values(): IterableIterator<V>;
~~~~~~
node_modules/typedoc/dist/lib/utils/map.d.ts:22:5 - error TS2416: Property '[Symbol.iterator]' in type 'StableKeyMap<K, V>' is not assignable to the same property in base type 'Map<K, V>'.
Type '() => IterableIterator<[K, V]>' is not assignable to type '() => MapIterator<[K, V]>'.
Type 'IterableIterator<[K, V]>' is missing the following properties from type 'MapIterator<[K, V]>': map, filter, take, drop, and 9 more.
22 [Symbol.iterator](): IterableIterator<[K, V]>;
~~~~~~~~~~~~~~~~~
Found 4 errors in the same file, starting at: node_modules/typedoc/dist/lib/utils/map.d.ts:19
Search terms
TypeScript, Map, 5.6
Expected Behavior
import * as typedoc from 'typedoc'(orconst typedoc = require('typedoc')) for accessing Typedoc's default options in order to add to them should not cause compilation errors with TypeScript 5.6.xActual Behavior
TypeScript raises the following errors:
This could be linked to this change from TypeScript ?
Steps to reproduce the bug
npm install -D typescript typedocindex.tsfile withimport * as typedoc from 'typedoc';npx tsc index.ts -target esnext --moduleResolution node --allowSyntheticDefaultImports(these are the minimal options to get only the errors inmap.d.ts)Environment