【发布时间】:2020-10-19 21:54:12
【问题描述】:
我正在尝试使用 Js 文档来生成我的项目的静态文档,但是当我尝试运行 js doc 命令时出现很多解析错误,仅发生在我有 curried 函数的地方,我的代码正常工作,错误是仅在 js 文档上,它是一个 lib 错误还是我做错了什么?
/**Responsible for fetch the data that will be loaded in the graph within the dialog
*
* @param {function} dispatch redux dispatch function
* @param {String} timeMode time mode used on metric page Example: 'Mensal'
* @param {String} dialogType type of the dialog used to request de correct data and render the body Example: 'WARN_NETWORK_DRIVE'
* @returns {(timeMode: String) => (dialogType: String) => Promise<void>}
*/
export const fetchGraphicData = dispatch => timeMode => async dialogType => {...function logic }
【问题讨论】:
标签: javascript jsdoc