How to see a fully-expanded TypeScript type without “N more” and “…”?

后端 未结 1 1978
长情又很酷
长情又很酷 2020-12-18 22:26

In VSCode, TypeScript shows really useful expansions of types I define. But there\'s a limit to what TS will show in IntelliSense. If a type is too long, then I\'ll see outp

相关标签:
1条回答
  • 2020-12-18 22:51

    Try setting the noErrorTruncation option to true in tsconfig.json. Confusingly enough, this option affects truncation of types displayed on hover in at least some circumstances; see this issue. Be careful: if your type is really huge, VS Code may hang when you try to view it.

    0 讨论(0)
提交回复
热议问题