TypeScript-Handbook
TypeScript-Handbook copied to clipboard
Typos in "Advanced Types"
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.