| ▲ | zackify 2 days ago | ||||||||||||||||||||||||||||||||||||||||||||||
5 years ago I was at a meet up and the guy talking was saying how if you don't like typescript these jsdocs are the way to go. Had to explain to my employer attending that it is still typescript. Didn't seem to believe me and was super against typescript but not jsdocs lol | |||||||||||||||||||||||||||||||||||||||||||||||
| ▲ | sntxcmp 2 days ago | parent | next [-] | ||||||||||||||||||||||||||||||||||||||||||||||
The difference is syntax compression imo. | |||||||||||||||||||||||||||||||||||||||||||||||
| ▲ | TheRealPomax a day ago | parent | prev [-] | ||||||||||||||||||||||||||||||||||||||||||||||
> Had to explain to my employer attending that it is still typescript "is" is doing a lot of heavy lifting there: JSDoc and TypeScript are two different ways to explicit prescribe typing in a way that tooling can use to determine correctness. The TS syntax is _far_ more powerful, but JSDoc can do most of the common TS use cases, for folks who want to stay in JS land while still benefiting from type tooling (either invoked or straight up built into the IDE). | |||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||