Skip to content

A parser and formatter for visualizing a simplified version of TS errors.

License

Notifications You must be signed in to change notification settings

jliocsar/better-ts-errors

Repository files navigation

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.

About

A parser and formatter for visualizing a simplified version of TS errors.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published