DEV Community

loading...

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

Collapse
w3bdesign profile image
w3bdesign

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 ?

Collapse
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.