Jan 23, 2022
Hi Alejandro Hernandez,
That's a good question. You can replace classes (export const Fruits: Record<FruitType, new () => Fruit>) with objects and use prototype inheritance instead to make code extendable. No room for doubts that it might work even better in some cases.