Skip to content

Fix narrowing wording in handbook - #3622

Open
Yash200531 wants to merge 1 commit into
microsoft:v2from
Yash200531:3611-narrowing-wording
Open

Fix narrowing wording in handbook#3622
Yash200531 wants to merge 1 commit into
microsoft:v2from
Yash200531:3611-narrowing-wording

Conversation

@Yash200531

Copy link
Copy Markdown

Fixes #3611

One sentence wording fix in the Narrowing handbook page: clarifies that Boolean negations with ! filter out truthy types in negated branches.

Documentation-only change.

Copilot AI review requested due to automatic review settings August 1, 2026 20:35

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the Narrowing handbook page to clarify how TypeScript interprets boolean negation (!) in truthiness narrowing, specifically describing how negated branches exclude truthy types.

Changes:

  • Rewords a single sentence to explicitly state that ! negation filters out truthy types in the negated branch.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Writing Blooper in Type Narrowing section of handbook

2 participants