Microsoft/TypeScript

Markdown heading level bug in Narrowing documentation

Geschlossen

#63.531 geöffnet am 04.06.2026

 (4 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)TypeScript (13.395 Forks)batch import
DocsHelp Wanted

Repository-Metriken

Stars
 (108.860 Sterne)
PR-Merge-Metriken
 (Durchschn. Merge 6T 17h) (9 gemergte PRs in 30 T)

Beschreibung

Acknowledgement

  • I acknowledge that issues using this template may be closed without further explanation at the maintainer's discretion.

Comment

URL: https://www.typescriptlang.org/docs/handbook/2/narrowing.html#truthiness-narrowing

Issue: In the "Narrowing" handbook page, the heading for "Truthiness narrowing" is written as an H1 (# Truthiness narrowing) instead of an H2 (## Truthiness narrowing).

Because of this markdown typo, all the subsequent parallel narrowing concepts (Equality narrowing, The in operator narrowing, instanceof narrowing, etc.) are incorrectly nested under "Truthiness narrowing" in the Table of Contents, which might confuse readers into thinking they are sub-concepts of Truthiness narrowing.

Contributor Guide