| ▲ | efortis a day ago | |||||||||||||
Although it's more verbose, it makes code less dense because it lives outside the function parameters. Also, it's not a super limited subset. For instance, you can write types in .d.ts the IDE uses those types in jsdoc out of the box. | ||||||||||||||
| ▲ | epolanski a day ago | parent [-] | |||||||||||||
The list of things jsdoc cannot do is long but a simple example is overloading, you cannot express this[1] in jsdoc, and if you need to reference .d.ts files you're back at using TypeScript, so the point of JSDoc was...? If you need precise return typing, conditional types, literal values, etc, you aren't going far if anywhere with JSDoc. | ||||||||||||||
| ||||||||||||||