You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/documentation/copy/en/handbook-v2/Classes.md
-1
Original file line number
Diff line number
Diff line change
@@ -253,7 +253,6 @@ TypeScript has some special inference rules for accessors:
253
253
254
254
- If `get` exists but no `set`, the property is automatically `readonly`
255
255
- 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)
257
256
258
257
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.
0 commit comments