<img src="https://raw.githubusercontent.com/yoavbls/pretty-ts-errors/main/assets/empty.png" alt="Logo">
TypeScript ErrorsMake TypeScript errors prettier and human-readable in VSCode.
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:

and others from: Web Dev Simplified, Josh tried coding, trash dev, and more
.ts files).js and .jsx files).tsx and .mdx files).astro, .svelte and .vue files).hbs, .gjs, and .gts files)code --install-extension yoavbls.pretty-ts-errors
Or simply by searching for pretty-ts-errors in the VSCode marketplace
Follow the instructions there. unfortunately, this hack is required because of VSCode limitations.
... more ..., { ... }, etc in an inconsistent manner. Some are also cutting in the middle because they're too long.type X = ... is missing, so I needed to create a new TextMate grammar, a superset of TypeScript grammar called type.
<img width="400" src="https://raw.githubusercontent.com/yoavbls/pretty-ts-errors/main/assets/mentions/js-nation.png?raw=true" alt="Winning the Productivity Booster category at JSNation 2023">
<img width="400" src="https://raw.githubusercontent.com/yoavbls/pretty-ts-errors/main/assets/mentions/tanner-dark.png#gh-dark-mode-only" alt="Tanner's tweet">
<img width="400" src="https://raw.githubusercontent.com/yoavbls/pretty-ts-errors/main/assets/mentions/theo-dark.png#gh-dark-mode-only" alt="Theo's tweet">
<img width="400" src="https://raw.githubusercontent.com/yoavbls/pretty-ts-errors/main/assets/mentions/johnson-dark.png#gh-dark-mode-only" alt="Johnson's tweet">
Kent C. Dodds
|
Matt Pocock
|
Alex / KATT
|
Tanner Linsley
|
Theo Browne
|
Every penny will be invested in other contributors to the project, especially ones that work on things that I can't be doing myself like adding support to the extension for other IDEs 🫂
Help by upvoting or commenting on issues we need to be resolved here Any other contribution is welcome. Feel free to open any issue / PR you think.
$ claude mcp add pretty-ts-errors \
-- python -m otcore.mcp_server <graph>