From d28c76856c1c7f33f59c499b7c63bdcf36db9a9f Mon Sep 17 00:00:00 2001 From: Chamoda Ranasinghe Date: Tue, 16 Jan 2024 03:57:03 +0700 Subject: [PATCH] added updateConjuredItem method and kept room for implementing the relevant business logic --- TypeScript/app/gilded-rose.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/TypeScript/app/gilded-rose.ts b/TypeScript/app/gilded-rose.ts index 524cc2d5..728e70b5 100644 --- a/TypeScript/app/gilded-rose.ts +++ b/TypeScript/app/gilded-rose.ts @@ -74,6 +74,11 @@ export class GildedRose { } } + private updateConjuredItem(item: Item) { + assert(item.name == ItemNames.CONJURED_CAKE); + //business logic to be implemented + } + updateQuality() { for (const item of this.items) { switch (item.name) {