0

I read a code and it wrote the following code, and I can't underestand the & sign, what doest it work?

type PizzaData = {
    numberOfPeople: number
    slicePerPerson: number
    slicePerPie: number
}

type PizzaState = PizzaData & { pizzasNeeded: number }

what will be PizzaState ?

natasha
  • 1
  • 1

0 Answers0