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
.
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.