Skip to content

Release v4.9.0

Compare
Choose a tag to compare
@github-actions github-actions released this 14 May 13:19

[V4.9.0]

  • feat: NoMatchParams当没有匹配到函数注释参数时是否显示paramreturn
"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')
};