Skip to content

Latest commit

 

History

History
16 lines (9 loc) · 912 Bytes

File metadata and controls

16 lines (9 loc) · 912 Bytes

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 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 from Matt Pocock.

Read more about the extension.