From c44a2a0e1e5c05dff75b6a8831e6fe9379ca20a1 Mon Sep 17 00:00:00 2001 From: Skeletrex-goop Date: Tue, 30 Dec 2025 22:43:24 -0800 Subject: [PATCH] Remove an unintended period ('.') in Narrowing.md Removed an unintended period ('.'), so "For example, with the code: `"value" in x`. where..." becomes "For example, with the code: `"value" in x` where..." --- 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..741580d80dd0 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