JSDocs: It's like TypeScript but without all that TypeScript
summary
Uses JSDoc plus the TypeScript language service to add real type checking without converting codebases to .ts; VS Code provides intellisense, and CI runs the tsc compiler as an npm devDependency. Steps: enable @ts-check per file, flip checkJs in tsconfig.json for project-wide checks, add a CI step that runs tsc with noEmit to fail builds, and set declaration + emitDeclarationOnly to produce .d.ts files into dist for libraries. This incremental workflow runs and produces usable type definitions.
AI-written summary · about
chapters (9)
- 0:00Introduction
- 7:44Why combine JavaScript and TypeScript
- 10:37JSDoc in VS Code
- 13:28Custom types with JSDoc
- 15:16Type checking project
- 17:47Type checking in CI/CD
- 18:52Generate type definitions
- 19:59Incremental adoption
- 22:24Closing remarks








