microsoft / TypeScript-Handbook

Deprecated, please use the TypeScript-Website repo instead
https://github.com/microsoft/TypeScript-Website
Apache License 2.0
4.88k stars 1.13k forks source link

Typos in "Advanced Types" #1330

Open johnjago opened 4 years ago

johnjago commented 4 years ago
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.