• Find an existing item that matches the dropped item by name, type, and subtype — the "similar item" an overwrite-on-drop would replace.

    Type Parameters

    Parameters

    • itemData: ItemMatchKey

      The dropped item's identifying fields.

    • actorItems: Iterable<T>

      The actor's existing items.

    Returns T | undefined

    The first matching item, or undefined when none match.