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

Addd a new item object to the in-memory representation of items.json

Parameters

newItemId: string

id of the item to add to items.json

itemToAdd: ITemplateItem

Item to add against the new id