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