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.

贡献者指南