Microsoft/TypeScript

parse jsdocs @property at top level

Aperta

#46.053 aperta il 24 set 2021

 (2 commenti) (0 reazioni) (0 assegnatari)TypeScript (13.395 fork)batch import
Experience EnhancementHelp WantedSuggestion

Metriche repository

Star
 (108.860 stelle)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

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

Guida contributor