From 9dd15103ba3df16a75052a61d90863c6a185ca4e Mon Sep 17 00:00:00 2001 From: hippye99 Date: Fri, 5 Jun 2026 11:07:49 +0800 Subject: [PATCH] docs(handbook): fix heading level for "Truthiness narrowing" In the Narrowing handbook page, the "Truthiness narrowing" heading was written as an H1 (`#`) instead of an H2 (`##`). It sits alongside the other narrowing kinds (`typeof type guards`, `Equality narrowing`, `in operator narrowing`, etc.) which are all H2, so it should be H2 too. The H1 caused the on-page Table of Contents to nest every subsequent sibling section under "Truthiness narrowing", giving readers the impression that Equality / in / instanceof narrowing etc. are sub-concepts of truthiness. Refs microsoft/TypeScript#63531 --- packages/documentation/copy/en/handbook-v2/Narrowing.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/documentation/copy/en/handbook-v2/Narrowing.md b/packages/documentation/copy/en/handbook-v2/Narrowing.md index 741580d80dd0..c7a552ecf9b9 100644 --- a/packages/documentation/copy/en/handbook-v2/Narrowing.md +++ b/packages/documentation/copy/en/handbook-v2/Narrowing.md @@ -106,7 +106,7 @@ Users with enough experience might not be surprised, but not everyone has run in This might be a good segue into what we'll call "truthiness" checking. -# Truthiness narrowing +## Truthiness narrowing Truthiness might not be a word you'll find in the dictionary, but it's very much something you'll hear about in JavaScript.