将 @typescript-eslint/types 从 7.x 升级到 8.x
根据 TypeScript 类型自动比较 @typescript-eslint/types 7.18.0 与 8.72.2 的公开 API。签名变化表示可能存在不兼容变更,并非确定结论。
概要
| 已删除的导入路径 | 0 |
|---|---|
| 已删除的导出 | 0 |
| 已修改的签名 | 3 |
| 已删除的类或接口成员 | 4 |
| 已修改的类或接口成员 | 0 |
| 新增弃用 | 1 |
| 要求变化(engines、peer 依赖) | 1 |
| 新增导出 | 3 |
已删除的导出
未发现。
已修改的签名
| export | 之前 | 之后 |
|---|---|---|
@typescript-eslint/types · Lib | "es5" | "es6" | "es2015" | "es7" | "es2016" | "es2017" | "es2018" | "es2019" | "es2020" | "es2021" | "es2022" | "es2023" | "esnext" | "dom" | "dom.iterable" | "dom.asynciterable" | "webworker" | "webworker.importscripts" | "webworker.iterable" | "webworker.asynciterable" | "scripthost" | "es2015.core" | "es2015.collection" | "es2015.generator" | "es2015.iterable" | "es2015.promise" | "es2015.proxy" | "es2015.reflect" | "es2015.symbol" | "es2015.symbol.wellknown" | "es2016.array.include" | "es2016.intl" | "es2017.date" | "es2017.object" | "es2017.sharedmemory" | "es2017.string" | "es2017.intl" … | "decorators" | "decorators.legacy" | "dom" | "dom.asynciterable" | "dom.iterable" | "es5" | "es6" | "es7" | "es2015" | "es2015.collection" | "es2015.core" | "es2015.generator" | "es2015.iterable" | "es2015.promise" | "es2015.proxy" | "es2015.reflect" | "es2015.symbol" | "es2015.symbol.wellknown" | "es2016" | "es2016.array.include" | "es2016.full" | "es2016.intl" | "es2017" | "es2017.arraybuffer" | "es2017.date" | "es2017.full" | "es2017.intl" | "es2017.object" | "es2017.sharedmemory" | "es2017.string" | "es2017.typedarrays" | "es2018" | "es2018.asyncgenerator" | "es2018.asynciterable" | "es201… |
@typescript-eslint/types · DebugLevel | boolean | ("eslint" | "typescript-eslint" | "typescript")[] | boolean | ("eslint" | "typescript" | "typescript-eslint")[] |
@typescript-eslint/types · EcmaVersion | 3 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 2015 | 2016 | 2017 | 2018 | 2019 | 2020 | 2021 | 2022 | 2023 | 2024 | 2025 | "latest" | undefined | 3 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 2015 | 2016 | 2017 | 2018 | 2019 | 2020 | 2021 | 2022 | 2023 | 2024 | 2025 | 2026 | "latest" | undefined |
已删除的类或接口成员
| member | import | 之前 |
|---|---|---|
ParserOptions.loc | @typescript-eslint/types | boolean | undefined |
ParserOptions.comment | @typescript-eslint/types | boolean | undefined |
ParserOptions.EXPERIMENTAL_useProjectService | @typescript-eslint/types | boolean | undefined |
ParserOptions.EXPERIMENTAL_useSourceOfProjectReferenceRedirect | @typescript-eslint/types | boolean | undefined |
已修改的类或接口成员
未发现。
新增弃用
| export | @deprecated |
|---|---|
@typescript-eslint/types · ParserOptions.warnOnUnsupportedTypeScriptVersion | Use {@link onUnsupportedTypeScriptVersion} instead. `true` is equivalent to `'warn'` and `false` is equivalent to `'ignore'`. |
要求变化(engines、peer 依赖)
| 之前 | 之后 | |
|---|---|---|
engines.node | ^18.18.0 || >=20.0.0 | — |
新增导出 (3)
| import | export | kind |
|---|---|---|
@typescript-eslint/types | NodeWithParent | type |
@typescript-eslint/types | SourceTypeClassic | type |
@typescript-eslint/types | ProjectServiceOptions | interface |
把这些数据交给你的 AI 智能体
Vigia 是免费的 MCP 服务器:你的编程智能体在写代码之前就能检查版本、不兼容变更和安全漏洞。无需注册,无需 API 密钥。
claude mcp add --transport http vigia https://vigia.coredls.cloud/mcp
添加到 Cursor添加到 VS Code★ 在 GitHub 上加星
任何其他 MCP 客户端
{ "mcpServers": { "vigia": { "url": "https://vigia.coredls.cloud/mcp" } } }常见问题
将 @typescript-eslint/types 从 7 升级到 8 有哪些不兼容变更?
在 @typescript-eslint/types 7.18.0 与 8.72.2 之间,Vigia 发现 0 个已删除的导出、3 个已修改的签名,以及 4 个已删除或修改的类或接口成员。
@typescript-eslint/types 8 中弃用了哪些内容?
@typescript-eslint/types 8.72.2 中有 1 个导出或成员新被标记为弃用。
供智能体使用
GET https://vigia.coredls.cloud/v1/packages/npm/@typescript-eslint/types/upgrade?from=7.18.0&to=8.72.2