https://github.com/jliocsar/better-ts-errors
A parser and formatter for visualizing a simplified version of TS errors.
https://github.com/jliocsar/better-ts-errors
errors extension markdown parse ts typescript vscode
Last synced: 4 months ago
JSON representation
A parser and formatter for visualizing a simplified version of TS errors.
- Host: GitHub
- URL: https://github.com/jliocsar/better-ts-errors
- Owner: jliocsar
- License: mit
- Created: 2022-05-01T00:04:24.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-08-30T04:18:31.000Z (over 2 years ago)
- Last Synced: 2025-09-23T14:55:16.222Z (4 months ago)
- Topics: errors, extension, markdown, parse, ts, typescript, vscode
- Language: TypeScript
- Homepage: https://better-ts-errors.vercel.app
- Size: 50.1 MB
- Stars: 6
- Watchers: 2
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Better TS Errors 🧼
A parser and formatter for visualizing a simplified version of TS errors.
## Description
This tool outputs a markdown formatted version of a TypeScript error, including syntax highlight for code snippets etc.
It currently uses [undici](https://github.com/nodejs/undici) under the hood to fetch & cache all possible diagnostic error messages for TS, then using those to match against actual error messages in your project.
⚠️ Keep in mind since this extension stores all possible TS error messages in-memory, it might allocate >= 5mb of memory just for the diagnostics messages. ⚠️
It's still under development and will most likely change in the future.
This project was highly inspired by [ts-error-translator](https://github.com/mattpocock/ts-error-translator) from [Matt Pocock](https://twitter.com/mpocock1).
[**Read more about the extension**](/apps/vscode/README.md).