Today I was frustrated by Typescript for the first time. I used a dep which was originally written in TS, and debugging it was a major PITA.
Additionally, @WebStormIDE goes to the d.ts when you "Go to source", which is never what I want.
-
-
I get the logic, but it's just never what I want (although I do not write Typescript, so maybe if I did - there'd be a point in that maybe), however I'm sure there's a way to go to source and display the definition there in some form (overlay? Gray text), esp. if source is JS.
-
So were you navigating from a .js or .ts file? If it was .js, we try to find the JavaScript definition on Cmd/Ctrl-click.
- 3 more replies
New conversation -
-
-
There are a bit more details about the logic we use to map definitions in .js and .ts to definitions in .d.ts in this comment: https://youtrack.jetbrains.com/issue/WEB-28729#focus=streamItem-27-3252879.0-0 … Hope it helps!
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.