UNPKG

@juice789/tf2items

Version:
13 lines (10 loc) 360 B
import schema from './schema.json' with { type: 'json' } export const safeItems = new Proxy(schema.items, { get(receiver, name) { return name in receiver ? receiver[name] : { defindex: name, item_name: 'Undefined item' } } }) export const { particleEffects, textures, collections, items } = schema