3 ms·
JSDoc types are not TypeScript types
- gibbitz 2y agoThis is because JSDoc types are documentation tags and TS Types are compilation instructions/safeguards. One generally chooses JSDocs when it is determined that type safeguards are not worth the maintenance and/or migration cost of converting to Typescript.