This plugin is proof of concept
npm install esdoc-typescript-plugin
{
"source": "./src",
"destination": "./doc",
"plugins": [
{"name": "esdoc-typescript-plugin", "option": {"enable": true}}
]
}
enable
is defaulttrue
export class Foo {
// without document, with initializer
member: number = 10;
// without document
method1(n: number): string {
}
// without @param and @return
/**
* this is method2.
*/
method2(n: number): string {
}
// without type in @param and @return
/**
* this is method3.
* @param n - this is param desc.
* @return this is return desc.
*/
method3(n: number): string {
}
}
MIT