TypeDoc无法为高阶功能生成文档

时间:2019-12-12 16:53:03

标签: typescript typedoc

我有代码,一个高阶函数正在返回一个类。为该函数生成了文档,但是忽略了类中的注释。为什么要让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;
};

0 个答案:

没有答案