import { PlainPizza } from "./ConcreteComponents/PlainPizza" ; import { Mozzarella } from "./ConcreteDecorator/Mozzerlla" ; import { Pizza } from "./AbstractComponent/Pizza" ; import { TomatoSauce } from "./ConcreteDecorator/TomatoSauce" ; let pizzaOne = new PlainPizza ( ) ; pizzaOne = new Mozzarella ( pizzaOne ) ; pizzaOne = new TomatoSauce ( pizzaOne ) ; console . log ( 'Pizza Desc : ' , pizzaOne . getDescription ( ) ) ; console . log ( 'Pizza Cost : ' , pizzaOne . getCost ( ) ) ;