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

Get values that will hydrate the passed in assorts back to the desired counts

Parameters

assortItems: Item[]

Current assorts after items have been removed

generationValues: IGenerationAssortValues

Base counts assorts should be adjusted to

Returns

IGenerationAssortValues object with adjustments needed to reach desired state