Your First Documentation
You’re starting fresh. Run this in your TypeScript project:http://localhost:3000. You’ve got MDX files for every exported API item, automatic navigation in docs.json, and interactive components for complex types.
Keeping Docs Fresh
You’ve shipped v1.2.0 with new features. Your types changed. Your docs need updating. Just run the generate command again:docs.json navigation stays in sync.
Customizing Output
The default templates look great, but you need your own branding or structure. Initialize your template directory:./templates. Now edit them:
- Change
class.liquidto add custom sections - Modify
function.liquidto highlight examples differently - Update
layout.liquidto match your brand
generate, your customizations apply automatically. You still get updates to templates you didn’t modify.
Templates use LiquidJS. Check the Template Reference for available variables and examples.
Troubleshooting Common Issues
“No API items found” YourentryPoint in mint-tsdocs.config.json probably points to the wrong file. It needs your compiled .d.ts file (usually in lib/ or dist/), not your source .ts files. Run bun build first.
“Navigation not updating”
Check your docsJson path in config. The tool needs write access to update docs.json. Make sure the path is correct and the file exists.
“Types not rendering correctly”
Complex generic types sometimes need manual documentation. Add JSDoc comments with @remarks or @example tags to provide context that can’t be inferred from type signatures alone.
“Build fails with TypeScript errors”
API Extractor is strict about type safety. If your project builds but API Extractor fails, check for:
- Missing type annotations on exported functions
anytypes in public API- Circular dependencies

