Skip to content

Typos, round 7 #48

@Firsh

Description

@Firsh

https://www.totaltypescript.com/workshops/typescript-pro-essentials/annotations-and-assertions/required-vs-unnecessary-annotations/solution

These two are redundant, keep one:

"The return type annotation is also unnecessary, because TypeScript recognizes that when evaluating isProblem || isSolution, a boolean variable will be returned."

"The return type annotation could also be pruned while maintaining the correct inference. TypeScript recognizes that when evaluating isProblem || isSolution, a boolean variable will be returned, rendering the annotation needless."

"The only annotation that needs to say"... -> stay

"even if we remove its annotation.:" -> unnecessary period

"properly utilizing inference system" -> add "the" before inference system


https://www.totaltypescript.com/workshops/typescript-pro-essentials/annotations-and-assertions/non-null-assertions/solution

"operater tells TypeScript to remove" -> operator


https://www.totaltypescript.com/workshops/typescript-pro-essentials/annotations-and-assertions/improve-type-annotations-with-the-satisfies-operator/solution

"With this change, errors will appearing as required" -> appear


https://www.totaltypescript.com/workshops/typescript-pro-essentials/annotations-and-assertions/using-satisfies-with-keyof-and-typeof-in-typescript/solution

"Using of satisfies is a good practice" -> The use of satisfies...


https://www.totaltypescript.com/workshops/typescript-pro-essentials/annotations-and-assertions/the-satisfies-keyword-and-deeply-read-only-objects-in-typescript/exercise

"Inside of the tests we expect that accessing properties of the routes object should return Home and About instead of interpreting these as literals:"

The text and the code are contradictory. The code is explicitly testing for literal string types ("Home", "About"), but the text suggests we want to avoid literal interpretation.

Suggestion -> "Inside of the tests we expect that accessing properties of the routes object should return the literal types Home and About instead of the general string type:"


https://www.totaltypescript.com/workshops/typescript-pro-essentials/annotations-and-assertions/the-satisfies-keyword-and-deeply-read-only-objects-in-typescript/solution

"Now our tests pass expected." -> as expected

"This setup of combining as const and satisfies is ideal when you need a particular shape for a configuration object and want while enforcing immutability." -> either delete "and want" or replace "while enforcing" with "to enforce"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions