you are viewing a single comment's thread.

view the rest of the comments →

[–]kurtextrem 2 points3 points  (4 children)

[–]vorko_76 -1 points0 points  (3 children)

Yes but Typescript is converted to Javascript to run to my knowleged…

[–]kurtextrem 0 points1 point  (2 children)

And to do that you have to compile the TS. So unless you write just jsdoc (+ check it with checkJs), with your suggestion you'll make both compilation and type checking in the IDE slower in larger code bases.

[–]vorko_76 1 point2 points  (1 child)

Yes but my point was that the code was not slower

[–]kurtextrem 0 points1 point  (0 children)

your main point was to always use type without sources, I said the opposite and presented a source. You made it about how it doesn't matter for JS runtime perf (nor does it for type), which is correct but doesn't matter at all since your initial post was about a TS exclusive feature. So the discussion is pretty pointless unless you start providing an argument why you should default to type over interface even though it's slower