TypeScript-Handbook icon indicating copy to clipboard operation
TypeScript-Handbook copied to clipboard

Typos in "Advanced Types"

Open johnjago opened this issue 5 years ago • 0 comments

pluck(taxi, ['year', 'unknown']); /

There is a random /.

(`object['42'`])

Backtick should be after the ] so that the code is highlighted properly.

As an example of some types that are immediately resolved, we can take a look at the following example

Saying the word "example" twice sounds awkward.

But as an example of a place where conditional types are deferred - where they stick around instead of picking a branch - would be in the following

The grammar here is off enough that it also sounds awkward. Also, em dashes would be more appropriate here instead of keyboard's small dash.

johnjago avatar Jun 16 '20 01:06 johnjago