https://github.com/stevekinney/react-and-typescript-projects/blob/b166519d76be141df29d79c4f568eb1447661bf2/examples/19-pizza-calculator-complete/src/Application.tsx#L40 how do we pass an object of type **PizzaState** to a function **"addPizzasNeededToPizzaData"** which accepts a parameter **data** and its type is of **PizzaData**?
react-and-typescript-projects/examples/19-pizza-calculator-complete/src/Application.tsx
Line 40 in b166519
how do we pass an object of type PizzaState to a function "addPizzasNeededToPizzaData" which accepts a parameter data and its type is of PizzaData?