From e537aa8ac91492d18aa7aac6ba6f378d2cf0712c Mon Sep 17 00:00:00 2001 From: Hank Lee Date: Tue, 27 Jan 2026 13:06:41 -0500 Subject: [PATCH] docs(tsconfig-reference): fix optional property syntax - ? is suffix not prefix The exactOptionalPropertyTypes documentation incorrectly stated that optional properties 'have a ? prefix'. In TypeScript, the ? appears after the property name (e.g., `propertyName?: Type`), making it a suffix. This is a documentation-only change. --- .../copy/en/options/exactOptionalPropertyTypes.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/tsconfig-reference/copy/en/options/exactOptionalPropertyTypes.md b/packages/tsconfig-reference/copy/en/options/exactOptionalPropertyTypes.md index d8238bec7aa6..a47584f19260 100644 --- a/packages/tsconfig-reference/copy/en/options/exactOptionalPropertyTypes.md +++ b/packages/tsconfig-reference/copy/en/options/exactOptionalPropertyTypes.md @@ -3,7 +3,7 @@ display: "Exact Optional Property Types" oneline: "Interpret optional property types as written, rather than adding `undefined`." --- -With exactOptionalPropertyTypes enabled, TypeScript applies stricter rules around how it handles properties on `type` or `interfaces` which have a `?` prefix. +With exactOptionalPropertyTypes enabled, TypeScript applies stricter rules around how it handles properties on `type` or `interfaces` which have a `?` suffix. For example, this interface declares that there is a property which can be one of two strings: 'dark' or 'light' or it should not be in the object.