Release v4.9.0
[V4.9.0]
- feat:
NoMatchParams
当没有匹配到函数注释参数时是否显示param
和return
"fileheader.configObj": {
"NoMatchParams": "no param" // 默认不显示param那一行
}
示例:
// "NoMatchParams": "no show param"
/**
* @description: 没匹配到函数参数,不显示@param那行
* @return {type} 填写返回值
*/
export const download = async ( ) => {
// do something
console.log('空参数 匹配不到函数参数: NoMatchParams')
return 'something'
};
// "NoMatchParams": "no show param and return"
/**
* @description: 只显示description 不显示@param与@return这两行
*/
export const download = async ( ) => {
// do something
console.log('空参数 匹配不到函数参数: NoMatchParams')
return 'something'
};
// "NoMatchParams": "show param"
/**
* @description: 没匹配到函数参数 也显示@param与@return
* @param {type}
* @return {type}
*/
export const download = async ( ) => {
console.log('空参数 匹配不到函数参数: NoMatchParams')
};