From f5d04b2aca31a29f96ea99d7a48ec146c6ad5708 Mon Sep 17 00:00:00 2001 From: Maxim R <79020992+foxcaulfield@users.noreply.github.com> Date: Wed, 5 Jun 2024 22:12:48 +0200 Subject: [PATCH] Classes.md: Update description for getter and setter member visibility (#3097) --- packages/documentation/copy/en/handbook-v2/Classes.md | 1 - 1 file changed, 1 deletion(-) diff --git a/packages/documentation/copy/en/handbook-v2/Classes.md b/packages/documentation/copy/en/handbook-v2/Classes.md index 11bcb0fe9002..276b1481723c 100644 --- a/packages/documentation/copy/en/handbook-v2/Classes.md +++ b/packages/documentation/copy/en/handbook-v2/Classes.md @@ -253,7 +253,6 @@ TypeScript has some special inference rules for accessors: - If `get` exists but no `set`, the property is automatically `readonly` - If the type of the setter parameter is not specified, it is inferred from the return type of the getter -- Getters and setters must have the same [Member Visibility](#member-visibility) Since [TypeScript 4.3](https://devblogs.microsoft.com/typescript/announcing-typescript-4-3/), it is possible to have accessors with different types for getting and setting.