Skip to content

skarab42/ts-to-md

Repository files navigation

TypeScript Definitions to Markdown

integration

TypeScript Definitions to Markdown (ts-to-md) is a VS Code extension that helps you to export your TypeScript definitions in Markdown format directly to your clipboard ready to paste in your README.

GIF

Features

  • Exports Type and Interface.
  • Outputs Markdown table (or list).
  • Take care of BlockDoc comments.
  • Bring default value from TSDoc @default tag.
  • Also works with unsaved or scratch file.
  • Uses your local/global typescript version.
  • Fallback to embedded typescript version.
  • Set a custom fixed version of typescript.

Planned

  • Markdown list output.
  • ...

Installation

Install through VS Code Marketplace: TypeScript Definitions to Markdown.

Usage

Right click on any type or interface and search for TS Definitions to Markdown in the contextual menu next to copy/paste or use the command palette Ctrl+Shift+P and search for the same command name.

Known issues and limitations

https://github.com/skarab42/ts-to-md/issues

Contributing

https://github.com/skarab42/ts-to-md/pulls