| ▲ | tobyhinloopen a day ago | |
> Take it from a massive TypeScript nerd: JSDoc is not an anti-TypeScript position to take. It is the same powerful static analysis without the build step. | ||
| ▲ | spoiler a day ago | parent | next [-] | |
Technically there's still a build step happening under the hood! But another benefit of shifting TS into JSDoc comments is that it also works in browsers. That being said, while I understand the aversion to unnecessary complexity, I'm personally fine with a build step to remove TS. It's a much nicer syntax IMO. And with tools like `swc` for type stripping, it's pretty snappy too. | ||
| ▲ | eevilspock a day ago | parent | prev [-] | |
that's limited to node. won't work in a browser. | ||