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