UNPKG

@jeremyckahn/farmhand

Version:
19 lines (15 loc) 354 B
/** @typedef {farmhand.keg} keg */ import { v4 as uuid } from 'uuid' import { carrot } from '../../data/crops/index.js' /** * @param {Partial<keg>} overrides * @returns {keg} */ export const getKegStub = (overrides = {}) => { return { id: uuid(), itemId: carrot.id, daysUntilMature: carrot.daysToFerment ?? 0, ...overrides, } }