@microsoft/tsdoc
This library is the reference implementation of a parser for the TSDoc syntax. Using this library is an easy way to ensure that your tool is 100% compatible with the standard.
What is TSDoc?
TSDoc is a proposal to standardize the doc comments used in TypeScript source files. It allows different tools to extract content from comments without getting confused by each other's syntax. The TSDoc notation looks pretty familiar:
export class Statistics {
public static getAverage(x: number, y: number): number {
return (x + y) / 2.0;
}
}
Give it a try!
Check out the TSDoc Playground for a cool live demo of our parser!
Get involved
The TSDoc project is actively evolving. Please visit our GitHub project for the latest documentation, instructions for building/debugging the projects, and other resources:
https://github.com/Microsoft/tsdoc