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.
-
Show this thread
-
Or is it called "Go to declaration" or smth. Anyways, one of the most common things you do in an IDE...
1 reply 0 retweets 1 likeShow this thread -
Replying to @eDominykas
Hi, we believe that for .ts files Go to Definition should prefer d.ts or .ts files to .js files because from the TypeScript's perspective they are the source of truth. Go to Implementation will try to take you to the .js file if they are available.
2 replies 0 retweets 3 likes
Replying to @WebStormIDE @eDominykas
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!
1:58 AM - 10 Feb 2020
0 replies
0 retweets
1 like
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.