Skip to main content
The Deno 2 Release Candidate is here
Learn more
method ItemHelper.prototype.isValidItem
Re-export
import { ItemHelper } from "https://deno.land/x/sptaki@1.2.0/helpers/mod.ts";

Checks if an id is a valid item. Valid meaning that it's an item that be stored in stash

Parameters

tpl: string

the template id / tpl

optional
invalidBaseTypes: string[]

Returns

boolean

boolean; true for items that may be in player possession and not quest items