4 ms·
One line of TS, then two lines of JS (with a type annotation in one of them)
by jameshart 1y ago
One line of TS, then two lines of JS (with a type annotation in one of them)
- goloroden 1y agoIt’s not even 2 lines: 1. Type definition 2. Chain definition 3. Enqueue definition
- jakelazaroff 1y agoLine 1 is fully erased when transpiling, leaving two lines of JavaScript.
- Brian_K_White 1y agoBut you still had to write it and it's required to get the result, so I don't see any rational for not counting it. Transpilation does not change the fact that the input is these 3 lines of code in 2 different languages.
- jakelazaroff 1y agoRight, and only two of those lines are JavaScript. The type definition is not required to get the result.