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

Construct item limit record to hold max and current item count

Parameters

limits: Record<string, number>

limits as defined in config

Returns

Record<string, { current: number; max: number; }>

record, key: item tplId, value: current/max item count allowed