Using JSDoc for Type Checking in JavaScript: Why Svelte Switched from TypeScript
This article explains how JSDoc can provide TypeScript‑like type checking, documentation generation, and d.ts emission for plain JavaScript, demonstrates the required tsconfig settings and code examples, and reveals that Svelte adopted JSDoc mainly to simplify debugging without a compilation step.