Modern Front-End Development for Rails B7: pg 77 setTicketsToBuy: (number) => void

setTicketsToBuy: (number) => void

image

As currently written, number is interpreted as a name (with implicit any type) rather than a type. It should be something like:

setTicketsToBuy: (n: number) => void

Thanks! I’ll fix that in the next version.

Just a heads up: this same reference appears again on pg 117.