Skip to content

Commit 04e6124

Browse files
authored
Merge pull request #2 from xnorly/typos
Fixed some tiny typos
2 parents 11f4af2 + 7b5192c commit 04e6124

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

exercises/01-apiMapping.exercise.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,6 @@ export type GroupProgram = ProgramMap["GROUP"];
230230
* index types via unions.
231231
*
232232
* 🕵️‍♂️ Try experimenting with programModeEnumMap, changing the keys
233-
* and values to see what errors, or what changes in the each of
233+
* and values to see what errors, or what changes in each of
234234
* the derived types.
235235
*/

exercises/02-roleBasedAccess.exercise.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ export const canUserAccess = (role: Role, action: Action) => {
132132
* Argument of type '"update-self" | "view" | "create" | "update-any"
133133
* | "delete"' is not assignable to parameter of type '"view"'.
134134
*
135-
* To understand this error, we're going to have to pretty deep.
135+
* To understand this error, we will have to dig pretty deep.
136136
*
137137
* 🚁 Let's look at our UserAccessModelValues type again.
138138
*
@@ -143,7 +143,7 @@ export const canUserAccess = (role: Role, action: Action) => {
143143
* When we call .includes, we're calling it on userAccessModel[role] -
144144
* which is exactly the same type as UserAccessModelValues.
145145
*
146-
* 🕵️‍♂️ Refactor the function so that saves userAccessModel[role]
146+
* 🕵️‍♂️ Refactor the function so that it saves userAccessModel[role]
147147
* into its own variable before calling includes on it.
148148
*
149149
* const possibleActions = userAccessModel[role];

exercises/03-wrapExternalLib.exercise.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ export const fetchUserWithFullName = async (
170170
*/
171171

172172
/**
173-
* 💡 But how do we want to transform it? We want to be keep the same
173+
* 💡 But how do we want to transform it? We want to keep the same
174174
* parameters, but be able to add additional properties to what gets
175175
* resolved from the promise.
176176
*

0 commit comments

Comments
 (0)