DEV Community

Discussion on: Upgrade your React game with TypeScript: Interfaces, types and components

w3bdesign profile image

I think you may have forgotten something, you are talking about both types and interfaces, but I see interface CandyBar which should probably be type CandyBar ?

misselliev profile image
Elizabeth Villalejos Author

It's interface CandyBar.
For example within that interface, okToSell: boolean would be the name of the property and the type.