Skip to main content
The Deno 2 Release Candidate is here
Learn more
method InsuranceController.prototype.processAttachments
import { InsuranceController } from "https://deno.land/x/sptaki@1.2.0/controllers/InsuranceController.d.ts";

Process parent items and their attachments, updating the toDelete Set accordingly.

Parameters

mainParentToAttachmentsMap: Map<string, Item[]>

A Map object containing parent item IDs to arrays of their attachment items.

itemsMap: Map<string, Item>

A Map object for quick item look-up by item ID.

traderId: string

The trader ID from the Insurance object.

toDelete: Set<string>

A Set object to keep track of items marked for deletion.