0.0.4 • Published 6 years ago
type-docs v0.0.4
type-docs
install
npm install --save-dev type-docs
usage
in your typescript code, add the special comments:
// @docstart API/Players/List export interface PlayerList { players: Player[]; count: number; } // @docend
in your template markdown file(eg, DOCS.t.md), add the following tempalte code:
List ${API/Player/List}
run
type-docs -d src/ -t src/DOCS.t.md -o DOCS.md
DOCS.md
will be generated with the type definitions filled