【发布时间】:2017-08-14 08:48:13
【问题描述】:
我习惯于以特定方式记录 C# 项目中的代码,以提高团队生产力,从 Visual Studio 中的 Intellisense 等中受益。
代码如下所示:
/// <summary>
/// Loads a user with a specific id.
/// </summary>
/// <param name="id">The id of the user to search for.</param>
/// <returns>A user with the given id.</returns>
public User GetUserById(string id) {
...
}
Typescript 是否有类似的评论和文档约定?甚至是使用这些约定从代码 cmets(如 JavaDoc)生成 html 文档页面的工具?
【问题讨论】:
标签: c# typescript documentation comments conventions