Skip to content

Commit b5a3e0d

Browse files
authored
Merge pull request #3022 from GainEternal/patch-4
Update part9c.md - Grammar/Typos
2 parents 46346aa + 07b376a commit b5a3e0d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/content/9/en/part9c.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -654,7 +654,7 @@ We can do that by using the utility type [Pick](https://www.typescriptlang.org/d
654654
In our project, we should consider that Ilari might want to create a listing of all his diary entries <i>excluding</i> the comment field since, during a very scary flight, he might end up writing something he wouldn't necessarily want to show anyone else.
655655

656656
The [Pick](https://www.typescriptlang.org/docs/handbook/utility-types.html#picktype-keys) utility type allows us to choose which fields of an existing type we want to use.
657-
Pick can be used to either construct a completely new type or to inform a function what it should return on runtime.
657+
Pick can be used to either construct a completely new type or to inform a function that it should return on runtime.
658658
Utility types are a special kind of type, but they can be used just like regular types.
659659

660660
In our case, to create a "censored" version of the *DiaryEntry* for public displays, we can use *Pick* in the function declaration:
@@ -1112,7 +1112,7 @@ export default toNewDiaryEntry;
11121112
>};
11131113
>```
11141114
>
1115-
> <i>So before the real data and types are ready to use, I am just returning here something that has for the sure the right type. The code stays in an operational state all the time and my blood pressure remains in normal level. </i>
1115+
> <i>So before the real data and types are ready to use, I am just returning here something that has for sure the right type. The code stays in an operational state all the time and my blood pressure remains in normal level. </i>
11161116
11171117
### Type guards
11181118

0 commit comments

Comments
 (0)