From affdece05e0b671a4821a07bd7a1b42cdb54dd01 Mon Sep 17 00:00:00 2001 From: Matt Wiens Date: Fri, 4 Apr 2025 18:38:36 -0700 Subject: [PATCH] Fix punctuation in Narrowing section of handbook --- 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 34044be7c6f5..bf17229f4c42 100644 --- a/packages/documentation/copy/en/handbook-v2/Narrowing.md +++ b/packages/documentation/copy/en/handbook-v2/Narrowing.md @@ -276,7 +276,7 @@ function multiplyValue(container: Container, factor: number) { JavaScript has an operator for determining if an object or its prototype chain has a property with a name: the `in` operator. TypeScript takes this into account as a way to narrow down potential types. -For example, with the code: `"value" in x`. where `"value"` is a string literal and `x` is a union type. +For example, with the code `"value" in x`, where `"value"` is a string literal and `x` is a union type. The "true" branch narrows `x`'s types which have either an optional or required property `value`, and the "false" branch narrows to types which have an optional or missing property `value`. ```ts twoslash