Microsoft/TypeScript

parse jsdocs @property at top level

Open

#46,053 创建于 2021年9月24日

在 GitHub 查看
 (2 评论) (0 反应) (0 负责人)TypeScript (6,726 fork)batch import
Experience EnhancementHelp WantedSuggestion

仓库指标

Star
 (48,455 star)
PR 合并指标
 (平均合并 6天 17小时) (30 天内合并 9 个 PR)

描述

Suggestion

"currently @property is only parsed as a child of @typedef. It would be more consistent to parse it at the top-level too"

💻 Use Cases

/**
 * Controls the alignment of text when printed.
 *
 * @property left - Left-aligns the text.
 * @property right - Right-aligns the text.
 * @property center - Centers the text horizontally.
 */
type TextAlignment = 'left' | 'right' | 'center';

贡献者指南