-
-
Notifications
You must be signed in to change notification settings - Fork 737
Type errors for map.d.ts
when importing typedoc
with TypeScript 5.6.3
#2747
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
https://devblogs.microsoft.com/typescript/announcing-typescript-5-6/#iterator-helper-methods is the cause of this one. Unfortunately switching that return type will cause type errors for anyone using an older version of TS than 5.6, which is still new enough that I don't love making that change, at least without a 0.x release... I recommend TypeScript's skipLibCheck option for now. |
Quoting my comment from microsoft/TypeScript#60145:
I would recommend removing |
I hadn't even considered dropping the implements, that's obviously the right solution in hindsight. |
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 typedoc
index.ts
file 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
The text was updated successfully, but these errors were encountered: