Skip to content
jsdoc-to-tsdoc

Menu

Stable · on npm · GitHub Action

Move from JSDoc to TSDoc, and keep it moved.

A CLI that converts JSDoc comments to TSDoc, stubs the documentation that is missing, and fails CI when the gap comes back.

npx jsdoc-to-tsdoc init

01 · Why

Why jsdoc-to-tsdoc

Scan

Know the gap first

scan --classify counts exports with valid TSDoc, partial docs, line comments or none, before anything is changed.

Convert

Rewrite comments in place

convert turns JSDoc into TSDoc. The examples on this site are before and after taken from real runs.

Scaffold

Stubs for what is missing

scaffold adds a TSDoc stub to every export that has none, ready to fill in.

Gate

Keep it from coming back

check fails the build when TSDoc is invalid or missing. Use it as a GitHub Action or a Bitbucket pipe.

02 · Docs

Docs

One page per command, the concepts behind them, and the CLI reference.

All docs →

03 · Tutorials

Tutorials

Guided walkthroughs, from the first migration to a CI gate that holds.

All tutorials →

04 · Examples

Examples

Before and after, taken from real runs of the CLI.

All examples →

Start using jsdoc-to-tsdoc

npx jsdoc-to-tsdoc init