4 ms·
JSDoc types don’t have any effect on how the code runs. They just document the types they’re commenting on. They’re conceptually exactly the same as a .d.ts com
by eyelidlessness 3y ago
JSDoc types don’t have any effect on how the code runs. They just document the types they’re commenting on. They’re conceptually exactly the same as a .d.ts companion file, and both are just different ways to achieve roughly the same thing as having TypeScript types directly in the source.