我有代码,一个高阶函数正在返回一个类。为该函数生成了文档,但是忽略了类中的注释。为什么要让TypeDoc包含该类?
/**
* # This will be included
*/
const withController = (param: string) => {
/**
* ## This will NOT be included
*/
class Controller {
/**
* ### Neither will this
*/
myMethod = (): void => {
...doSomething with param
};
}
return Controller;
};