An open API service indexing awesome lists of open source software.

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.

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