Microsoft/TypeScript

parse jsdocs @property at top level

Offen

#46.053 geöffnet am 24.09.2021

 (2 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)TypeScript (13.395 Forks)batch import
Experience EnhancementHelp WantedSuggestion

Repository-Metriken

Stars
 (108.860 Sterne)
PR-Merge-Metriken
 (PR-Metriken ausstehend)

Beschreibung

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

Contributor Guide