Microsoft/TypeScript

Markdown heading level bug in Narrowing documentation

已關閉

#63,531 建立於 2026年6月4日

 (4 則留言) (0 個反應) (0 位負責人)TypeScript (13,395 個分叉)batch import
DocsHelp Wanted

倉庫指標

星標
 (108,860 顆星)
PR 合併指標
 (平均合併 6天 17小時) (30 天內合併 9 個 PR)

描述

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.

貢獻者指南