import { Topping } from "../AbstractDecorator/ToppingDecorator" ; import { Pizza } from "src/AbstractComponent/Pizza" ; export class TomatoSauce extends Topping { constructor ( newPizza ) { super ( newPizza ) ; console . log ( 'Adding TomatoSauce To Plain Pizza Created.' ) ; } getCost ( ) { return this . tempPizza . getCost ( ) + 0.3 ; } getDescription ( ) { return this . tempPizza . getDescription ( ) + ', TomatoSauce.' ; } }