Should we add an update(itemId: string, item: Item): void method that updates an item? Should it throw if the item doesn't exist? Should it simply replace the whole item, or deeply merge it with the existing item, or even take a transform function given the existing item and returning the new item?
Should we add an
update(itemId: string, item: Item): voidmethod that updates an item? Should it throw if the item doesn't exist? Should it simply replace the whole item, or deeply merge it with the existing item, or even take a transform function given the existing item and returning the new item?