Microsoft/TypeScript

Markdown heading level bug in Narrowing documentation

クローズ

#63,531 opened on 2026/06/04

 (4 件のコメント) (0 件のリアクション) (0 人の担当者)TypeScript (13,395 件のフォーク)batch import
DocsHelp Wanted

Repository metrics

Stars
 (108,860 個のスター)
PR merge metrics
 (平均マージ 6d 17h) (30d で 9 merged PRs)

説明

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.

コントリビューターガイド