Skip to content

Commit f5d04b2

Browse files
authored
Classes.md: Update description for getter and setter member visibility (#3097)
1 parent 76dcafa commit f5d04b2

File tree

1 file changed

+0
-1
lines changed
  • packages/documentation/copy/en/handbook-v2

1 file changed

+0
-1
lines changed

Diff for: packages/documentation/copy/en/handbook-v2/Classes.md

-1
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,6 @@ TypeScript has some special inference rules for accessors:
253253

254254
- If `get` exists but no `set`, the property is automatically `readonly`
255255
- If the type of the setter parameter is not specified, it is inferred from the return type of the getter
256-
- Getters and setters must have the same [Member Visibility](#member-visibility)
257256

258257
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.
259258

0 commit comments

Comments
 (0)