Skip to content

itemTree beta ​

Function of @v12-engine/editor

ts
export declare function itemTree(items: readonly ItemDef[], options?: {
    currency?: string | null;
    problems?: readonly RulesProblem[];
}): ItemTree;

The item tree of some items: each in the column of its tier, a line from each of its parts, its price in currency and its parts' together, and the problems the rules' check found in it