Microsoft/TypeScript

parse jsdocs @property at top level

Aberta

#46.053 aberto em 24 de set. de 2021

 (2 comentários) (0 reação) (0 responsável)TypeScript (13.395 forks)batch import
Experience EnhancementHelp WantedSuggestion

Métricas do repositório

Stars
 (108.860 estrelas)
Métricas de merge de PR
 (Métricas PR pendentes)

Description

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';

Guia do colaborador