Effective TypeScript

Errata for Effective TypeScript

Submit your own errata for this product.


The errata list is a list of errors and their corrections that were found after the product was released. If the error was corrected in a later version or reprint the date of the correction will be displayed in the column titled "Date Corrected".

The following errata were submitted by our customers and approved as valid errors by the author or editor.

Color Key: Serious Technical Mistake Minor Technical Mistake Language or formatting error Typo Question Note Update



Version Location Description Submitted By Date Submitted Date Corrected
Printed
Page 68
First code example

Last line of the code example is: { '1,2,3': 1 } The value should be 2, not 1: { '1,2,3': 2 }

Stein Magnus Jodal  Mar 20, 2020 
Printed
Page 100
First code example

Line 4 is: pt.y < polygon.bbox.y[1] || pt.y > polygon.bbox.y[1]) { The index in the lower bound check should be 0, not 1: pt.y < polygon.bbox.y[0] || pt.y > polygon.bbox.y[1]) {

Note from the Author or Editor:
This has been fixed in the second release (March 2020).

Stein Magnus Jodal  Mar 23, 2020 
Printed
Page 101
Second code example

Line 6 is: pt.y < x[0] || pt.y > y[1]) { Instead of comparing with the lower x boundary, it should compare with the lower y boundary: pt.y < y[0] || pt.y > y[1]) {

Note from the Author or Editor:
This has been fixed in the second release.

Stein Magnus Jodal  Mar 23, 2020 
Printed
Page 103
bottom paragraph

This is a sentence fragment: "Within an async function, awaiting a Promise that throws an exception." It should read: "Within an async function, awaiting a Promise that *rejects* throws an exception."

Dan Vanderkam
 
Jan 26, 2020  Mar 06, 2020
Printed
Page 151
bottom code sample

The isSorted code sample reads: if (xs[i] > xs[i - 1]) { return false; } It should be "<", not ">".

Dan Vanderkam
 
Nov 18, 2019  Mar 06, 2020
Printed
Page 173
Continuation of the example from page 172

devDependencies should include @types/react

Note from the Author or Editor:
@types/lodash should be @types/react. Thanks for catching this mistake!

Anonymous  Jan 06, 2020  Mar 06, 2020