setTicketsToBuy: (number) => void
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
setTicketsToBuy: (number) => void
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.