microsoft / microsoft/TypeScript

support destructuring parameter @param tag in tsdoc

未关闭
#33,367 0 条评论 17 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

Experience Enhancement Suggestion
主要语言
Go
星标
111k
派生
14.4k
平均合并
1 天 19 小时
30 天内合并 PR
117

描述

tsdoc rule:

https://github.com/microsoft/tsdoc/issues/186

vscode issue:

https://github.com/microsoft/vscode/issues/80368

example:

/**
 *
 * @param bar - the bar parameter
 * @param a - the first parameter
 * @param b - the second parameter
 * @param c - the third parameter
 * @returns the return value
 */
function foo(bar: string, {
  a,
  b,
  c
}:{
  a: string,
  b: number,
  c: string
}) {

  return bar + a;
}

image
image

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

从解构示例开始,查看链接的 TSDoc 和 VS Code issue,以了解预期的 @param 行为。找到 TypeScript 文档中关于解构参数的部分,或 language-service 对解构参数的处理,然后添加覆盖,显示 a、b 和 c 获得预期的参数文档。

由索引模型根据 Issue 内容生成。

评估

技术栈
typescript
领域
developer-experience, documentation
Issue 类型
功能
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。