Some syntax highlighting does not work in TypeScript when a function has several return types #134440
Labels
*duplicate
Issue identified as a duplicate of another issue(s)
upstream-issue-linked
This is an upstream issue that has been reported upstream
If all return types are aligned in one line than the coloring works - but beautifying packages such as prettier will always make it fall down. I don't understand why the highlighting doesn't work.
Steps to Reproduce: just write a function in
TypeScript
that has many types of return value:As you can see, the
const
and thereturn
don't get highlighted :(Another (silly) example:
The text was updated successfully, but these errors were encountered: