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

Find an assort item that matches the first parameter, also matches based on upd properties e.g. salewa hp resource units left

Parameters

rootItemBeingAdded: Item

item to look for a match against

itemDbDetails: ITemplateItem

Db details of matching item

itemsWithChildren: Item[][]

Items to search through

Returns

Matching assort item