3 ms·
TypeScript stuff: 1. A tool for debugging TypeScript (in VSCode) that shows the provided and expected types, and how they are different, in a way that is easy
by cehrlich 4y ago
TypeScript stuff:
1. A tool for debugging TypeScript (in VSCode) that shows the provided and expected types, and how they are different, in a way that is easy to read.
Instead of having a bunch of nested paragraphs in plain text, show it in two columns, each displaying how a normal person would write a type declaration. Maybe even use color (highlighting?) to show which parts are different.
2. A tool for VSCode that lets you expand (into a modal or whatever) types that are abbreviated when you hover them
- tnzk 4y agoAgree on 2 if you meant something like inlay hists in rust-analyzer. https://rust-analyzer.github.io/manual.html#inlay-hints https://rust-analyzer.github.io/manual.html#inlay-hints
- tmpfile 4y agoFor #2 you can hold CTRL when hovering over a type to expand the type definition. If you hold CTRL+click it will go to the definition.