Skip to content

Commit

Permalink
fix(typos): fix typos in chapters 16
Browse files Browse the repository at this point in the history
  • Loading branch information
gdarchen committed Jul 12, 2024
1 parent b272e81 commit 9f55f6c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions book-content/chapters/16-the-utils-folder.md
Original file line number Diff line number Diff line change
Expand Up @@ -957,7 +957,7 @@ it("should return the result if the function succeeds", async () => {
});
```

Your task is to update `safeFunction` to have a generic type parameter, and update `PromiseFunc` to not return `Promise<Any>`. This will require you to combine generic types and functions to ensure that the tests pass successfully.
Your task is to update `safeFunction` to have a generic type parameter, and update `PromiseFunc` to not return `Promise<any>`. This will require you to combine generic types and functions to ensure that the tests pass successfully.

<Exercise title="Exercise 5: Combining Generic Types and Functions" filePath="/src/085-the-utils-folder/219-combining-generic-types-with-generic-functions.problem.ts"></Exercise>

Expand Down Expand Up @@ -1197,7 +1197,7 @@ const objMap = createStringMap();
const objMap: Map<string, unknown>;
```

Through these steps, we've successfully transformed `createStringMap` from a regular function into a generic function capable of receiving type arguments .
Through these steps, we've successfully transformed `createStringMap` from a regular function into a generic function capable of receiving type arguments.

### Solution 2: Default Type Arguments

Expand Down

0 comments on commit 9f55f6c

Please sign in to comment.