A flow type plugin for esdoc2 [PoC]
npm install esdoc2-flow-type-pluginbash
npm install esdoc2-flow-type-plugin
`Config
`json
{
"source": "./src",
"destination": "./doc",
"plugins": [
{"name": "esdoc2-flow-type-plugin", "option": {"enable": true}}
]
}
`-
enable is default trueExample
`js
export class Foo {
// without document
member: number;
// 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 {
}
}
``