登录 注册

pretty-ts-errors

去点 Star
网络与基础设施开发者工具内容创作与媒体工具 astrodenoerrorssveltetypescriptvscode
14,098
Stars
114
Forks
21
Watchers
24
Open Issues
MIT
许可证
TypeScript
语言
2022-08-30
创建时间
2026-10-31
最近更新

项目能做什么

在 VSCode 中美化 TypeScript 报错提示,使其更清晰易读。
来源:AI 基于仓库事实生成 · 内容以仓库实际 README 为准

使用说明 查看原始 README 原仓库文档

中文使用说明暂未生成。下面保留原仓库 README 摘录,命令与配置均以原文为准。
原始 README 摘录(英文原文,节选前 3000 字符)
<a href="https://marketplace.visualstudio.com/items?itemName=yoavbls.pretty-ts-errors" style="display: none;">
  <picture>
    <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/yoavbls/pretty-ts-errors/main/assets/icon.png" width="140">
    <source media="(prefers-color-scheme: light)" srcset="https://raw.githubusercontent.com/yoavbls/pretty-ts-errors/main/assets/icon.png" width="140">
    <img src="https://raw.githubusercontent.com/yoavbls/pretty-ts-errors/main/assets/empty.png" alt="Logo">
  </picture>
</a>

# Pretty `TypeScript` Errors

<b>Make TypeScript errors prettier and human-readable in VSCode.</b>

[![GitHub stars](https://img.shields.io/github/stars/yoavbls/pretty-ts-errors.svg?style=social&label=Star)](https://GitHub.com/yoavbls/pretty-ts-errors/stargazers/)
[![Visual Studio Code](https://img.shields.io/badge/Visual%20Studio%20Code-0078d7?logo=visualstudiocode&logoColor=white)](https://marketplace.visualstudio.com/items?itemName=yoavbls.pretty-ts-errors)&nbsp;[![GitHub license](https://badgen.net/github/license/yoavbls/pretty-ts-errors)](https://github.com/yoavbls/pretty-ts-errors/blob/main/LICENSE)&nbsp;[![Visual Studio Code](https://img.shields.io/visual-studio-marketplace/i/yoavbls.pretty-ts-errors)](https://marketplace.visualstudio.com/items?itemName=yoavbls.pretty-ts-errors)
<a href="https://github.com/yoavbls/pretty-ts-errors/discussions/43#user-content-jetbrains-support"><img src="https://cdn.icon-icons.com/icons2/2530/PNG/512/jetbrains_webstorm_button_icon_151873.png" height="20" alt="Webstorm logo"></a>
[![Cursor](https://img.shields.io/badge/Cursor-000000?logo=cursor)](https://open-vsx.org/extension/yoavbls/pretty-ts-errors)

TypeScript errors become messier as the complexity of types increases. At some point, TypeScript will throw on you a shitty heap of parentheses and `"..."`.
This extension will help you understand what's going on. For example, in this relatively simple error:

<img src="./assets/this.png" width="340.438px" />&nbsp; &nbsp; <img src="./assets/instead-of-that.png" width="350px" />

## Watch this

<a href="https://www.youtube.com/watch?v=9RM2aErJs-s" target="_blank">
 <img src="https://raw.githubusercontent.com/yoavbls/pretty-ts-errors/main/assets/mentions/theo-video.png" alt="Watch theo's video" width="600" />
</a>

and others from:
[Web Dev Simplified](https://www.youtube.com/watch?v=ccg-erZYO4k&list=PL0rc4JAdEsVpOriHzlAG7KUnhKIK9c7OR&index=1),
[Josh tried coding](https://www.youtube.com/watch?v=_9y29Cyo9uU&list=PL0rc4JAdEsVpOriHzlAG7KUnhKIK9c7OR&index=3),
[trash dev](https://www.youtube.com/watch?v=WJeD3DKlWT4&list=PL0rc4JAdEsVpOriHzlAG7KUnhKIK9c7OR&index=4&t=208),
and [more](https://www.youtube.com/playlist?list=PL0rc4JAdEsVpOriHzlAG7KUnhKIK9c7OR)

## Features

- Syntax highlighting with your theme colors for types in error messages, supporting both light and dark themes
- A button that leads you to the relevant type declaration next to the type in the error message
阅读完整原文

商业机会分析 AI 生成

AI 辅助类型错误诊断与一键修复插件(Freemium 插件)

产品构想在美化报错的基础上,集成大模型,针对复杂 TS 报错提供自然语言解释、一键修复建议(Quick Fix)以及类型推断展开视图
核心功能美化报错展示(免费基础)、AI 错误溯源解释、一键 Patch/修复代码、支持自定义/自带 API Key 或团队云端模型
目标用户受 TS 复杂类型困扰的开发者、从 JavaScript 转向 TypeScript 的新手
难度/周期中等 · 1 - 2 个月 · 成本:极低(主要是初期测试 API 费用及插件托管成本)
收费模式免费增值模式(Freemium):基础排版免费,高级 AI 解释及一键修复按月订阅或自带 Token 付费解锁 Pro 功能
竞争风险Cursor、GitHub Copilot 等通用 AI 编程助手功能日益完善,可能直接侵蚀垂直场景的生存空间
依据 AI推测

CI/CD 友好型 TypeScript 错误排查与分析 CLI

产品构想将 IDE 端的美化逻辑提取为命令行工具与 CI Action,在 PR 检查和构建失败时生成人类可读的高亮报错报告,并阻断不合规的 any/类型断言
核心功能GitHub Actions / GitLab CI 报告集成、PR 评论生成格式化 TS 错误、类型债务(Type Debt)统计与趋势看板
目标用户前端工程效能团队、Tech Lead、中大型 TS 项目维护者
难度/周期低至中等 · 2 - 4 周 · 成本:低(轻量服务端或静态 GitHub Action)
收费模式开源基础 CLI,高级团队看板及多项目监控采用 SaaS 订阅制
竞争风险企业客户对纯 CI 格式化输出付费意愿有限,市场拓展难度高于通用质量扫描工具(如 SonarQube)
依据 尚需验证的假设

TypeScript 类型交互式调试与可视化专家工具箱

产品构想超越静态报错排版,提供复杂的泛型展开、类型运算步进调试(Step-by-step type evaluation)的可视化面板
核心功能交互式泛型下钻、类型差异对比(Diff)、类型推导调用栈可视化、死循环/类型过深预警
目标用户TypeScript 库作者、基础架构工程师、高级前端开发者
难度/周期高(需要深入理解 TypeScript Compiler API 及语言服务协议) · 2 - 3 个月 · 成本:中等(研发与测试耗时较长)
收费模式买断制专业版 License(通过 Gumroad/LemonSqueezy 分发许可证密钥)
竞争风险受众相对小众,技术研发壁垒高,市场体量有限
依据 AI推测
AI 基于仓库公开数据分析生成,含推测成分,不构成收益承诺。
报告会保存到 个人中心

竞品与相似项目 GitHub Search 真实检索

项目中文简介Stars语言
Chalarangelo/30-seconds-of-code 中文介绍暂未生成
Coding articles to level up your development skills
129,481 JavaScript
unionlabs/union 中文介绍暂未生成
The trust-minimized, zero-knowledge bridging protocol, desig
73,718 Rust
withastro/astro 中文介绍暂未生成
The web framework for content-driven websites.
63,871 TypeScript
AstroNvim/AstroNvim 中文介绍暂未生成
AstroNvim is an aesthetic and feature-rich neovim config tha
14,484 Lua
emdash-cms/emdash 中文介绍暂未生成
EmDash is a full-stack TypeScript CMS based on Astro; the sp
14,352 TypeScript
uidotdev/usehooks 中文介绍暂未生成
A collection of modern, server-safe React hooks – from the u
11,497 MDX
以上为通过 GitHub 官方 Search API 检索的相似项目,功能差异与优劣势需进一步人工确认,配置 AI 后可生成对比分析。

项目优势与风险

技术成熟度创建于 2022-08-30,近 30 天仍在推送,发布过 11 个 Release
社区活跃Star 14,098 / Fork 114 / Issue 24(数据支持,可自行核实)
许可证MIT
主要风险上游项目方向可能变化;同赛道竞争者较多(见竞品表);热度与需求不完全等价

安装与使用

快速开始(以仓库 README 为准)
git clone https://github.com/yoavbls/pretty-ts-errors.git
cd pretty-ts-errors
# 请阅读仓库 README 获取确切安装步骤(依赖、配置、启动命令)
阅读原仓库文档
术语说明:Docker=应用容器(把程序和依赖打包运行);API Key=调用外部服务的密钥;Git Clone=把仓库代码下载到本地。常见错误:API Key 未配置 / 端口占用 / 数据库连接失败,多数项目在 README 的 Troubleshooting 章节有说明。