Skip to content

Commit d7290fb

Browse files
author
gvweshg
committed
Fix: Fixed typos (#745)
1 parent aa96377 commit d7290fb

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

docs/advanced/patterns_by_usecase.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -571,7 +571,7 @@ function handle(event: UserEvent) {
571571

572572
<details>
573573
<summary>
574-
Take care: TypeScript does not narrow the type of a Discriminated Union on the basis of typeof checks. The type guard has to be on the value of a key and not it's type.
574+
Take care: TypeScript does not narrow the type of a Discriminated Union on the basis of typeof checks. The type guard has to be on the value of a key and not its type.
575575
</summary>
576576

577577
```ts
@@ -589,7 +589,7 @@ function handle(event: UserEvent) {
589589
}
590590
```
591591

592-
The above example does not work as we are not checking the value of `event.value` but only it's type. Read more about it [microsoft/TypeScript#30506 (comment)](https://github.com/microsoft/TypeScript/issues/30506#issuecomment-474858198)
592+
The above example does not work as we are not checking the value of `event.value` but only its type. Read more about it [microsoft/TypeScript#30506 (comment)](https://github.com/microsoft/TypeScript/issues/30506#issuecomment-474858198)
593593

594594
</details>
595595

docs/advanced/utility-types.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ We will assume knowledge of utility types covered in the sister project [`typesc
88

99
If you intend to maintain a large TS codebase/a nontrivial React+TS library, **we strongly recommend exploring these utilities** so that you don't reinvent the wheel and/or lose sanity trying to do so. Studying their code can also teach you a lot of advanced TS that is not covered here.
1010

11-
I also recommend have a good working knowledge of how to construct the inbuilt utility types from scratch. See [Dr. Rauschmayer's guide](https://2ality.com/2020/06/computing-with-types.html) for a concise introduction.
11+
I also recommend having a good working knowledge of how to construct the inbuilt utility types from scratch. See [Dr. Rauschmayer's guide](https://2ality.com/2020/06/computing-with-types.html) for a concise introduction.
1212

1313
A level of comfort with **generic types** is therefore required. Here are some helpful resources:
1414

docs/hoc/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ title: HOC Cheatsheet
88

99
- We will map closely to [the official docs on HOCs](https://reactjs.org/docs/higher-order-components.html) initially
1010
- While hooks exist, many libraries and codebases still have a need to type HOCs.
11-
- Render props may be considered in future
11+
- Render props may be considered in the future
1212
- The goal is to write HOCs that offer type safety while not getting in the way.
1313

1414
Here is a base HOC example you can copy right away:

0 commit comments

Comments
 (0)