Skip to content

Commit 8d6d9b0

Browse files
committed
2 parents 0039555 + 35acea3 commit 8d6d9b0

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

packages/documentation/copy/en/handbook-v2/Classes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -887,7 +887,7 @@ class S {
887887

888888
### Why No Static Classes?
889889

890-
TypeScript (and JavaScript) don't have a construct called `static class` the same way C# and Java do.
890+
TypeScript (and JavaScript) don't have a construct called `static class` the same way as, for example, C# does.
891891

892892
Those constructs _only_ exist because those languages force all data and functions to be inside a class; because that restriction doesn't exist in TypeScript, there's no need for them.
893893
A class with only a single instance is typically just represented as a normal _object_ in JavaScript/TypeScript.

packages/documentation/copy/en/handbook-v2/Type Manipulation/Template Literal Types.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ person.on("ageChanged", newAge => {
166166
167167
Here we made `on` into a generic method.
168168
169-
When a user calls with the string `"firstNameChanged'`, TypeScript will try to infer the right type for `Key`.
169+
When a user calls with the string `"firstNameChanged"`, TypeScript will try to infer the right type for `Key`.
170170
To do that, it will match `Key` against the content prior to `"Changed"` and infer the string `"firstName"`.
171171
Once TypeScript figures that out, the `on` method can fetch the type of `firstName` on the original object, which is `string` in this case.
172172
Similarly, when called with `"ageChanged"`, TypeScript finds the type for the property `age` which is `number`.

packages/documentation/copy/en/reference/Type Compatibility.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,7 @@ A "<span class='black-tick'>✓</span>" indicates a combination that is compatib
391391
</tbody>
392392
</table>
393393

394-
Reiterating [The Basics](/handbook/2/basic-types.html):
394+
Reiterating [The Basics](/docs/handbook/2/basic-types.html):
395395

396396
- Everything is assignable to itself.
397397
- `any` and `unknown` are the same in terms of what is assignable to them, different in that `unknown` is not assignable to anything except `any`.

0 commit comments

Comments
 (0)